MAL-2026-13985 Malicious code in node-config-svg-contract (npm)
Malicious package
Published
MAL-2026-13985 is a malicious package: node-config-svg-contract (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-13985/ (Markdown: https://insights.sbomify.com/MAL-2026-13985/index.md)
- Package
- node-config-svg-contract
- Registry
- npm
What is MAL-2026-13985?
MAL-2026-13985 is a malicious package in node-config-svg-contract, published on 13 Aug 2026.
Official description
The 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.
What should I do about MAL-2026-13985?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.