Skip to main content

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

0
High
Published: 08/25/2026 (08/25/2026, 08:09:38 UTC)
Source: GCVE Database
Product: vite-plugin-image-analysis

Description

The npm package vite-plugin-image-analysis masquerades as a Vite plugin for image analysis but contains no legitimate image processing code. Instead, it injects a covert inline script into every built HTML page that reads sensitive user identity information from sessionStorage and exfiltrates it to a remote server using stealthy network methods. The exfiltration endpoint is obfuscated via base64 encoding and XOR operations, making detection difficult. This results in unintended leakage of personally identifiable information (PII) from end users of sites that include this plugin in their builds.

Affected software

npmghsa
vite-plugin-image-analysis
Affected versions
=1.1.0=1.0.0=1.1.2

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:40 UTC

Technical Analysis

The vite-plugin-image-analysis npm package, versions 1.0.0, 1.1.0, and 1.1.2, contains malicious code that injects an inline script into HTML pages during the build process. This script accesses user identity fields such as account, username, userNo, phone, and realName from sessionStorage.userInfo. It hooks the sessionStorage.setItem method to trigger data exfiltration after login events. The stolen data, along with host and OS information, is sent to a remote endpoint whose URL is obfuscated by base64 decoding and XOR with 42 at runtime. The exfiltration uses stealth transports like navigator.sendBeacon and fetch with no-cors and no-referrer policies to evade detection in network monitoring tools. This covert data theft occurs without the knowledge of developers who include this plugin, effectively turning their production sites into PII leak vectors.

Potential Impact

End users of websites built with vite-plugin-image-analysis versions 1.0.0, 1.1.0, and 1.1.2 may have sensitive personal information (account identifiers, phone numbers, real names) silently exfiltrated to an attacker-controlled server. This compromises user privacy and can lead to identity theft or further targeted attacks. Developers unknowingly distribute malicious code that breaches user trust and violates data protection principles.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix or removal of the malicious package is confirmed, developers should immediately audit their dependencies and remove vite-plugin-image-analysis versions 1.0.0, 1.1.0, and 1.1.2 from their projects. Avoid using this package and verify the integrity of third-party plugins before inclusion. Monitor for updates from the package maintainer or npm security advisories for remediation.

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-14480
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a8d9ae7acd9273b493e1747

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

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

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

Views: 32

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