vite-svg-confignpm
vite-svg-config is a confirmed malicious npm package (MAL-2026-14140) that executes malicious code on install (malicious version 1.1.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in vite-svg-config (npm)
What this malware does
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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for vite-svg-config (version 1.1.0).
If you installed it — respond
Remove vite-svg-config from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If vite-svg-config was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks vite-svg-config-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.