MAL-2026-5714
Malicious code in vite-plugin-logo (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (b107e832dfd60ded8637d9a6db69c980eae13bde79da4cd01d69c5a1110aca2b) On require, index.js walks up to 5 parent directories searching for `public/assets/logo.png`, scans the file bytes for the marker `__VITE_ASSET_CACHE_v1__`, base64-decodes the bytes that follow the marker, and executes them via `new Function('require', code)(require)` — passing the real `require` so the decoded payload has full Node capabilities (filesystem, network, child_process). The entire loader is wrapped in `try {... } catch (e) {}` to silently swallow errors, and uses single-letter identifiers and a marker name that masquerades as a Vite-internal cache to disguise intent. This is a steganographic loader: any project that installs and imports this plugin will execute whatever code is embedded in a PNG bearing the magic marker, giving an attacker (the package author, or anyone who can ship such a PNG into a consumer's `public/assets/` tree) a generic remote-code-execution primitive at build/import time. The package name follows the `vite-plugin-*` convention but is published under the generic placeholder author `Vite Community` with no repository or homepage, consistent with namespace abuse against the Vite plugin ecosystem.
## Source: ghsa-malware (3d700702000b48b3238610a7b5eb5380c9385148d2638f4e6a0f58174a70515e) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Are you affected?
Enter the version of the package you're using.
Affected packages
0 No fixed version published yet for vite-plugin-logo (npm). Pin to a known-safe version or switch to an alternative.
References
- https://www.npmjs.com/package/vite-plugin-logo/v/1.1.0 [PACKAGE]
- https://www.npmjs.com/package/vite-plugin-logo/v/1.0.5 [PACKAGE]
- https://www.npmjs.com/package/vite-plugin-logo/v/1.1.1 [PACKAGE]
- https://www.npmjs.com/package/vite-plugin-logo/v/1.0.3 [PACKAGE]
- https://www.npmjs.com/package/vite-plugin-logo/v/1.0.6 [PACKAGE]
- https://www.npmjs.com/package/vite-plugin-logo/v/1.0.4 [PACKAGE]
- https://www.npmjs.com/package/vite-plugin-logo/v/1.0.7 [PACKAGE]
- https://www.npmjs.com/package/vite-plugin-logo/v/1.0.9 [PACKAGE]
- https://www.npmjs.com/package/vite-plugin-logo/v/1.0.8 [PACKAGE]
- https://github.com/advisories/GHSA-cw37-h4jm-63xh [ADVISORY]