MAL-2026-17313 Malicious code in pixsvg (npm)
Malicious package
Published
MAL-2026-17313 is a malicious package: pixsvg (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-17313/ (Markdown: https://insights.sbomify.com/MAL-2026-17313/index.md)
- Package
- pixsvg
- Registry
- npm
What is MAL-2026-17313?
MAL-2026-17313 is a malicious package in pixsvg, published on 30 Sep 2026.
Official description
The pixsvg module exports fetchDataFromSvg(svgData), which scans the input SVG for a comment of the form <!–HIDDEN_JS:([01]+)–>, reassembles the binary-encoded 1/0 sequence into a JavaScript string via binaryToData (parseInt(chunk,2) + String.fromCharCode), and passes the reconstructed string to eval(). The helper is exported on the package's public surface (module.exports.fetchDataFromSvg) but is not documented in the README and is unrelated to the advertised SVG image pipeline. Any consumer application that feeds externally-supplied SVG content through this exported function will execute attacker-controlled JavaScript in the host process. The binary-encoding-then-eval shape is a deliberate covert execution channel with no legitimate role in an image-processing library.
What should I do about MAL-2026-17313?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.