Advisory

MAL-2026-17313

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in pixsvg (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (23f6989954f196f485ff049ef7dc22bb800a57187e6bdc8bd0e002ed4bbc1db7)
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.

Severity

Not rated by the source.

Dates

Published
2026-09-30 01:48 UTC
Modified
2026-09-30 03:00 UTC

Affected packages and fixes

pixsvg

npm · All systems

Affected

  • Versions: 0.2.0

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences