vite-plugin-image-analysis (npm) · Malicious Code
Affects vite-plugin-image-analysisSource GCVE Database
Malicious package : remove vite-plugin-image-analysis and rotate any secrets on hosts that installed it.
Data as of 10 Sep 2026, 18:48 UTC
Malicious package
Published to npm · OSV MAL-2026-14480
What to do
Remove vite-plugin-image-analysis from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmvite-plugin-image-analysis | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.