OpenSSF/OSV advisory MAL-2026-13766 confirms this npm version as malicious. 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))...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in node-internal-svg-loader (npm)
Details
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.
Decision reason
OpenSSF Malicious Packages via OSV confirms node-internal-svg-loader@1.0.1 as malicious (MAL-2026-13766): Malicious code in node-internal-svg-loader (npm)