Malicious code in node-internal-svg-loader (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-13766
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (ea179fb3670844db867458418a68b3eb69dfd983ebe1fe96b2a4b41601266fc4) Package advertises itself as an SVG loader using well-known CDN providers, but exported functions getPlugin, setPlugin, and getPluginExten build a request to https://rest-icon-handler.store/icons/<token> and pass the response body directly to eval(JSON.parse(body)). The destination host is not one of the CDNs the README references (Cloudflare/Fastly/Akamai/CloudFront/KeyCDN/Gcore), is not caller-configurable, and is assembled from separate protocol/subdomain/domain/path constants rather than a literal string. A benign-looking setDefaultModule that talks to cdnjs sits alongside the eval path as cover. Any consumer invoking these APIs executes arbitrary JavaScript returned by whoever controls rest-icon-handler.store, on the consumer's Node.js process with full ambient credentials and filesystem access. ## Source: ghsa-malware (6c3711f6de8ebdff01d531213eb77e942dcf6f34c7b5468b9da67fa12b893b3d) Any 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.
- Source published
- 11 Aug 2026 15:10:19 UTC
- Source modified
- 12 Aug 2026 13:00:20 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.