Skip to main content

Malicious code in vite-plugin-image-tracker (npm)

0
High
Published: 08/25/2026 (08/25/2026, 08:10:28 UTC)
Source: GCVE Database
Product: vite-plugin-image-tracker

Description

The npm package vite-plugin-image-tracker injects a script into HTML pages during build time that collects sensitive user information from sessionStorage, including account identifiers, phone numbers, and real names. This data is encoded and covertly transmitted to an obfuscated external endpoint. The package disguises this behavior under the guise of an image tracking plugin, without disclosing the collection of personal data or the destination of the transmitted information, indicating malicious intent.

Affected software

npmghsa
vite-plugin-image-tracker
Affected versions
=1.0.0=1.1.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/10/2026, 18:48:45 UTC

Technical Analysis

The vite-plugin-image-tracker npm package acts as a malicious plugin by injecting a script into every generated HTML page at build time. This script reads personal identifiable information (PII) such as account, username, user number, phone number, and real name from the browser's sessionStorage. It then constructs a payload with these details, encodes it using XOR with 42 and base64, and sends it to a concealed reporting endpoint. The endpoint address is obfuscated using the same XOR and base64 encoding, preventing easy detection by developers. The package name and description do not reveal this data collection, making it a covert exfiltration tool rather than a legitimate telemetry SDK.

Potential Impact

End-user personal data including account identifiers, phone numbers, and real names can be exfiltrated without user or developer knowledge. This compromises user privacy and may lead to identity theft or targeted attacks. The obfuscation of the reporting endpoint and the covert nature of data collection increase the risk of unnoticed data leakage in applications using this package.

Mitigation Recommendations

No official patch or remediation is currently documented. Users and developers should immediately cease using vite-plugin-image-tracker versions 1.0.0 and 1.1.0. Audit dependencies for this package and remove it from projects. Monitor for any updates or advisories from the package maintainers or security vendors. Since the package is not a cloud service, remediation depends on user action to remove the malicious package.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-14481
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a8d9ae7acd9273b493e1745

Added to database: 08/25/2026, 13:38:47 UTC

Last enriched: 09/10/2026, 18:48:45 UTC

Last updated: 10/02/2026, 14:22:07 UTC

Views: 33

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses