VDB
KO

MAL-2026-13464

Malicious code in vite-svg-parse (npm)

Details

--- _-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (5f6b581f4ab8d027c727649fae10749a9ac9a59af4619f5576362ab9243cb6c6) The package's exported API (getPlugin/setPlugin) decodes two base64 string literals at runtime: the first decodes to `npm install node-internal-svg-loader --no-save --silent --no-audit --no-fund`, which is passed to child_process.spawn; the second decodes to the module name `node-internal-svg-loader`, which is then require()'d and whose getPlugin()/setPlugin() are invoked. The fetched package is not declared in package.json dependencies, and both the shell command and the require target are concealed in base64 to evade static inspection. Any consumer that imports this library and calls its documented API causes an undeclared, hidden third-party npm package to be installed and its code executed in the installer's Node.js process.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / vite-svg-parse

No fixed version published yet for vite-svg-parse (npm). Pin to a known-safe version or switch to an alternative.

References