Critical binary-parser flaw allows JavaScript injection through parser definitions

· Original article ↗

Summary

CVE-2026-134814 affects binary-parser versions before 2.3.1. Crafted string options in attacker-controlled parser definitions can inject JavaScript into the Node.js process when a parser is compiled; the maintainer advises updating.

Key points

  • CVE-2026-134814 affects binary-parser versions prior to 2.3.1 and is described as a code-injection vulnerability.
  • An attacker who controls parser definitions can supply crafted string options that are inserted into generated JavaScript without adequate validation.
  • The flaw can execute arbitrary JavaScript in the host Node.js process when the parser is compiled.
  • The maintainer said parsing untrusted binary data with a trusted parser definition is not affected.
  • Version 2.3.1 validates the options as identifier paths; expressions such as `len - 1` are rejected, with functions suggested instead.
  • The article describes the issue as an incomplete fix for CVE-2026-1245, a code-injection flaw fixed in January 2026.

Article Details

Vulnerability Types
  • Code injection
Severity
Critical (CVSS scores: 9.2 / 8.1)
Affected Versions
  • binary-parser versions prior to 2.3.1
Exploitation Status
unknown
Exploit Availability
unknown
Patch Status
available

MITRE ATT&CK

CVE

People

Products

Related Articles