vite-plugin-images-analysis (npm) · Malicious Code
Affects vite-plugin-images-analysisSource GCVE Database
Malicious package : remove vite-plugin-images-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-14482
What to do
Remove vite-plugin-images-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-images-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-images-analysis, version 1.0.0, masquerades as an image analysis tool but injects malicious code into built HTML pages. This code harvests personally identifiable information (PII) such as account identifiers, phone numbers, and real names from sessionStorage. It captures data at login time by hooking sessionStorage.setItem and sends the collected information to a concealed endpoint using obfuscated base64 and XOR encoding.