MAL-2026-11497 Malicious code in vite-tsconfig-svg (npm)
- Package
- vite-tsconfig-svg
- Registry
- npm
What is MAL-2026-11497?
MAL-2026-11497 is a malicious package in vite-tsconfig-svg, published on 31 Jul 2026.
Official description
index.js contains two base64 constants that decode to the shell command npm install rollup-plugin-polyfill-helper --no-save --silent --no-audit --no-fund and the package name rollup-plugin-polyfill-helper. When a consumer calls the exported getPlugin/setPlugin (reachable indirectly through validateSvgContent), the module spawns the decoded install command via child_process with stdio:'ignore' and windowsHide:true, then require()s the decoded package name and invokes its getPlugin()/setPlugin() methods. The fetched package is undeclared in dependencies, unpinned, and pulled from the mutable npm registry, so arbitrary attacker-controlled code from rollup-plugin-polyfill-helper executes in the consumer's Node process. The package name and description advertise a vite/tsconfig SVG utility, but no vite/tsconfig code is shipped — the module only scans a caller-supplied directory for .svg files as a cover for the install-and-execute path.
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.
What should I do about MAL-2026-11497?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.
Sources
Also known as GHSA-3w4v-4hp3-9934.