MAL-2026-13464Malicious code in vite-svg-parse (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
1.1.3 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | vite-svg-parse | * |
| npm | vite-svg-parse | 1.1.3 |
{"schema_version":"1.7.4","id":"MAL-2026-13464","published":"2026-08-06T19:34:20Z","modified":"2026-08-12T00:19:00.202157555Z","aliases":["GHSA-v7x8-w6xp-6mv4"],"summary":"Malicious code in vite-svg-parse (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5f6b581f4ab8d027c727649fae10749a9ac9a59af4619f5576362ab9243cb6c6)\nThe 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.\n\n## Source: ghsa-malware (8da5f5874a95540b2a9ef4a13235eda70e4c5d853fcefeb886e2d0452eb98aa9)\nAny 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.\n","affected":[{"package":{"name":"vite-svg-parse","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"a8bef3841995b1144cc308dee9e7a2dc854ebb2872f6f30b80ec00d5b66e9e84","tlsh":"592235911c9731228d72c7fe5d01841eeb8ed3273215619e7dbd52501f7a7a042aeeec"}],"package_integrity":[{"filename":"vite-svg-parse-1.1.3.tgz","hashes":{"sha1":"1ac5435c045ed1509e0bfb06fee8cd1d38adb99f","sha512_sri":"sha512-SC/can+JEJ1fZa5nnnwaL7bFNWSzbnjc0uAcS8+mc8B0dFytnXR182Ai0lA/x0GdkKITn3vrq2XwGeidbRXFVQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/vite-svg-parse/v/1.1.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v7x8-w6xp-6mv4"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-016773","import_time":"2026-08-06T23:25:08.558554828Z","modified_time":"2026-08-06T19:34:20Z","sha256":"5f6b581f4ab8d027c727649fae10749a9ac9a59af4619f5576362ab9243cb6c6","source":"amazon-inspector","versions":["1.1.3"]},{"id":"GHSA-v7x8-w6xp-6mv4","import_time":"2026-08-12T00:17:04.873012627Z","modified_time":"2026-08-11T15:10:20Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"8da5f5874a95540b2a9ef4a13235eda70e4c5d853fcefeb886e2d0452eb98aa9","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0