{"id":"MAL-2026-13985","revision":"ef4a418548a44cc1b1585e1f78d3a669","records":[{"revision":"ef4a418548a44cc1b1585e1f78d3a669","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13985","aliases":[],"title":"Malicious code in node-config-svg-contract (npm)","description":"\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/<token>, 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","state":0,"publishedAt":"2026-08-13T21:11:35+00:00","modifiedAt":"2026-08-13T21:30:27.3075216+00:00","affected":[{"ecosystem":"npm","name":"node-config-svg-contract","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/node-config-svg-contract/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13985","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13985","identifiers":["MAL-2026-13985"]},"retained":false,"historicalAffected":[]}],"coverage":[]}