{"id":"MAL-2026-13985","summary":"Malicious code in node-config-svg-contract (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f73906b728364e1fa1f870bd746a0bec46ed3937ff42eef10bea8389729a86c1)\nThe package advertises itself as an SVG/icon CDN helper but its exported functions getPlugin, setPlugin, and getPluginExten construct a URL at runtime from fragmented constants (protocol, subdomain, domain, path) that resolve to https://rest-icon-handler.store/icons/\u003ctoken\u003e, fetch the response body, and pass it to eval(JSON.parse(body)). Any caller of these advertised APIs executes attacker-controlled JavaScript from a non-first-party endpoint on the caller's host. The documented CDN-provider allowlist is not consulted on this path. The destination host is assembled from separate string constants rather than a plain literal, concealing the concrete URL from casual review.\n","modified":"2026-08-13T21:30:27.307521645Z","published":"2026-08-13T21:11:35Z","database_specific":{"malicious-packages-origins":[{"sha256":"f73906b728364e1fa1f870bd746a0bec46ed3937ff42eef10bea8389729a86c1","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-017704","import_time":"2026-08-13T21:20:58.405907495Z","modified_time":"2026-08-13T21:11:35Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/node-config-svg-contract/v/1.0.0"}],"affected":[{"package":{"name":"node-config-svg-contract","ecosystem":"npm","purl":"pkg:npm/node-config-svg-contract"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/node-config-svg-contract/MAL-2026-13985.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"filename":"node-config-svg-contract-1.0.0.tgz","hashes":{"sha1":"f0129bee5bcd4457be81b3f277956beca8878c96","sha512_sri":"sha512-1AJCuy0zz2GCa5+QzQvZYdGjHOt6mywVYv0rRjyt8XYDdT3jwckIvfSjBjYf9+Lo6K/upEMBcoXQFKp0XiE9Yg=="}}],"evidence_files":[{"tlsh":"10b1355914e261128772ebfc5a8bc515f734f2237281c299bd9e86c02fb6560a273edc","path":"index.js","sha256":"3ea767ec14d82d321974e85eb8d97aab675e9661eaba5bd5ed488a8923b8ef9a"}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}