{"id":"MAL-2026-10482","summary":"Malicious code in react-icons-svgo (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d0ccdc7a601182ae60a4f75d72cb54aef12fbe94cb209625f6f1c9be47b12096)\nindex.js stores base64-encoded literals (`svgValidateKey`, `svgValidatePattern`) that decode to the shell command `npm install rollup-plugin-polyfill-handler --no-save --silent --no-audit --no-fund` and to the module name `rollup-plugin-polyfill-handler`. When the package's advertised API (`getPlugin`/`setPlugin`, or any SVG validation path via `ValidateSvgModule`/`ValidateSvgModuleB`) is invoked, the code `atob`-decodes those literals, `spawn`s the install command (suppressing output via `--silent --no-audit --no-fund` and skipping persistence via `--no-save`), then `require()`s the decoded module name and immediately invokes its exported `getPlugin()`. The fetched package is undeclared in `dependencies`, its name is hidden behind base64, and its contents are fully controlled by a third-party publisher who can change them at any time — yielding arbitrary remote code execution in the installer's Node process on first use of the advertised SVG utilities. The package name `react-icons-svgo` further impersonates the popular `react-icons` and `svgo` ecosystems while shipping no real functionality beyond a thin CDN helper plus this covert install/require channel.\n\n## Source: ghsa-malware (0b3d992536d0609b8a2b38d003708c848c24708be388fbda15cd4091f62135da)\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","aliases":["GHSA-m78v-9w6f-xwf2"],"modified":"2026-07-20T01:04:39.936276308Z","published":"2026-07-13T19:53:21Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-010304","modified_time":"2026-07-13T19:53:21Z","versions":["1.0.0"],"source":"amazon-inspector","sha256":"40365f843366f9cd2c80f313e99cc021df31c8f80c9813012277617e3fe4c230","import_time":"2026-07-13T20:29:54.241385357Z"},{"import_time":"2026-07-13T20:29:54.372122014Z","id":"IN-MAL-2026-010306","modified_time":"2026-07-13T19:53:41Z","versions":["1.5.4"],"source":"amazon-inspector","sha256":"5625dd5cae598aa066b4b6f1b5708134da0b3f0907805c0cb3f6dfefefb32430"},{"import_time":"2026-07-13T20:29:54.310075986Z","id":"IN-MAL-2026-010305","modified_time":"2026-07-13T19:53:30Z","versions":["1.5.3"],"source":"amazon-inspector","sha256":"d0ccdc7a601182ae60a4f75d72cb54aef12fbe94cb209625f6f1c9be47b12096"},{"source":"ghsa-malware","sha256":"0b3d992536d0609b8a2b38d003708c848c24708be388fbda15cd4091f62135da","import_time":"2026-07-20T00:57:10.767377357Z","id":"GHSA-m78v-9w6f-xwf2","modified_time":"2026-07-19T23:54:48Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-icons-svgo/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-icons-svgo/v/1.5.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-icons-svgo/v/1.5.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-m78v-9w6f-xwf2"}],"affected":[{"package":{"name":"react-icons-svgo","ecosystem":"npm","purl":"pkg:npm/react-icons-svgo"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0","1.5.4","1.5.3"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","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","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"24782fc848dd658f4675b5febd16712c122a079f200cd71f9ef3e35ffd9d6087","tlsh":"e52245911c9731228d72c7fe5d02841eeb8ed3273215619e7dbd52501f7a7a042aeeec"},{"path":"package.json","sha256":"a8390c06e51f523c7bbc43a3ba9458cdef5f744534ab96c710b61b2df2095b4f","tlsh":"96f07824da205d630eea52d36c8515175052da1b4d08bc0c73ab886c2ffe7af14fd6bd"}],"package_integrity":[{"filename":"react-icons-svgo-1.0.0.tgz","hashes":{"sha1":"f226afad3f5f1d6e71c185e9b00e974f8875a351","sha512_sri":"sha512-ibq57gLlEzz7LAtc8zd2+K5oLHJ3FB0kw6BC7fhbc1/Mfy0BHc+Oa8P7H971kGAQDN9QM3GturRZ7kgrf0JhGw=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/react-icons-svgo/MAL-2026-10482.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}