MAL-2026-14482 Malicious code in vite-plugin-images-analysis (npm)
Malicious package
Published
MAL-2026-14482 is a malicious package: vite-plugin-images-analysis (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-14482/ (Markdown: https://insights.sbomify.com/MAL-2026-14482/index.md)
- Package
- vite-plugin-images-analysis
- Registry
- npm
What is MAL-2026-14482?
MAL-2026-14482 is a malicious package in vite-plugin-images-analysis, published on 25 Aug 2026.
Official description
This Vite plugin, advertised as an image-analysis tool, uses transformIndexHtml to inject an inline script into every built HTML page produced by the developer's application. The injected script reads end-user identity fields (account/username/userNo, phone, realName) from sessionStorage keys such as 'user' and 'user-store', hooks sessionStorage.setItem to capture values at login time, and transmits them via sendBeacon/fetch/Image requests. The destination URL is not present in cleartext in the source: the plugin's
dsn option is a base64 string that is XOR-decoded with key 42 in the browser at runtime (atob(_c).split('').map(c=>String.fromCharCode(c.charCodeAt(0)^42)).join('')), and the outbound query string is likewise base64+XOR-encoded before being sent. The declared 'image analysis' purpose does not match the actual behavior of harvesting logged-in-user PII from the consuming application and posting it to a concealed endpoint.What should I do about MAL-2026-14482?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.