Advisory

MAL-2026-14480

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in vite-plugin-image-analysis (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (e61313bbeab91eb687fc7969f9dcc1478d4b672e1f02f91e56fa886e5ea7bd04)
The 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.

Severity

Not rated by the source.

Dates

Published
2026-08-25 08:09 UTC
Modified
2026-08-25 23:50 UTC

Affected packages and fixes

vite-plugin-image-analysis

npm · All systems

Affected

  • Versions: 1.0.0, 1.1.0, 1.1.2

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences