Advisory

GHSA-m39p-34qh-rh3w

Also known as: CVE-2026-1245

Summary

binary-parser library has a code injection vulnerability

Details

A code injection vulnerability in the binary-parser library prior to version 2.3.0 allows arbitrary JavaScript code execution when untrusted values are used in parser field names or encoding parameters. The library directly interpolates these values into dynamically generated code without sanitization, enabling attackers to execute arbitrary code in the context of the Node.js process.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-01-20 21:31 UTC
Modified
2026-02-03 03:11 UTC

Affected packages and fixes

binary-parser

npm · All systems

Affected

  • introduced 0, fixed 2.3.0 (semver)

Fixed versions

2.3.0

Fix

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences