{"id":"MAL-2026-14480","revision":"100f2af6b0c84ec49cdda64656084f2f","records":[{"revision":"100f2af6b0c84ec49cdda64656084f2f","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-14480","aliases":[],"title":"Malicious code in vite-plugin-image-analysis (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e61313bbeab91eb687fc7969f9dcc1478d4b672e1f02f91e56fa886e5ea7bd04)\nThe package presents itself as a Vite 'image analysis' plugin but contains no image-analysis code. Its `transformIndexHtml` hook injects an inline `<script>` into every built HTML page. The injected script reads user identity fields (`account`/`username`/`userNo`, `phone`, `realName`) from `sessionStorage.userInfo`, hooks `sessionStorage.setItem` so the beacon fires after login writes these fields, and sends the values along with host and OS to a remote endpoint. The destination URL is not a plain literal: a base64 blob is decoded and XOR'd with 42 at runtime in the victim's browser (`atob(_c).split('').map(c => String.fromCharCode(c.charCodeAt(0) ^ 42)).join('')`), and the outbound query string is similarly XOR(42)+base64 wrapped. Delivery uses stealth transports — `navigator.sendBeacon`, `fetch(..., { mode: 'no-cors', referrerPolicy: 'no-referrer' })` — that suppress network-panel visibility and referrer leakage. A developer who adds this plugin to their Vite build unknowingly ships a covert end-user PII scraper into their production site, with the exfil destination hidden from anyone inspecting the built bundle.\n","state":0,"publishedAt":"2026-08-25T08:09:38+00:00","modifiedAt":"2026-08-25T23:50:43.6979008+00:00","affected":[{"ecosystem":"npm","name":"vite-plugin-image-analysis","ranges":[],"versions":["1.1.0","1.0.0","1.1.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/vite-plugin-image-analysis/v/1.1.0","https://www.npmjs.com/package/vite-plugin-image-analysis/v/1.0.0","https://www.npmjs.com/package/vite-plugin-image-analysis/v/1.1.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-14480","license":"OSV · upstream source license applies","key":"osv:MAL-2026-14480","identifiers":["MAL-2026-14480"]},"retained":false,"historicalAffected":[]}],"coverage":[]}