Skip to main content
MalwarePublished

vite-plugin-image-analysis (npm) · Malicious Code

Affects vite-plugin-image-analysisSource GCVE Database

0

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

Classification

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

ProductAffectedFixed in
npmvite-plugin-image-analysisAffected
  • =1.1.0
  • =1.0.0
  • =1.1.2
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.

References

Community reviews

Loading reviews…