MAL-2026-14140Malicious code in vite-svg-config (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
1.1.0 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | vite-svg-config | 1.1.0 |
{"modified":"2026-08-18T22:47:03Z","published":"2026-08-18T22:47:03Z","schema_version":"1.7.4","id":"MAL-2026-14140","summary":"Malicious code in vite-svg-config (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (38e61dd39d0c1d39a3b80b7138582b334480c2fb89e990a2b64e6c59050a998f)\nThe 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.\n","affected":[{"package":{"ecosystem":"npm","name":"vite-svg-config"},"versions":["1.1.0"],"database_specific":{"cwes":[{"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":"e5e728d799c81d15dbebdae0d8d7851326168222c3576b66de54c99558bb1601","tlsh":"462233912cd731228d72c7fe5901841eeb8ed3273215619e7ebc92501f7a7a041aeeec"}],"package_integrity":[{"filename":"vite-svg-config-1.1.0.tgz","hashes":{"sha1":"0028546312c53c5a5ad0b844960857b754578de2","sha512_sri":"sha512-gZ6QfUtgBorvs2nzZqxd3Nw5EmjGzoSJWH2mutumypcaxDmUssTLdjdtqPXuTp2fqqjE85ZPXLrOzmAjX3QcAA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/vite-svg-config/v/1.1.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018172","import_time":"2026-08-18T23:09:41.488073968Z","modified_time":"2026-08-18T22:47:03Z","sha256":"38e61dd39d0c1d39a3b80b7138582b334480c2fb89e990a2b64e6c59050a998f","source":"amazon-inspector","versions":["1.1.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0