AploSec / Disclosures / CVE-2026-134814

Critical 9.2ReportedFixed in 2.3.1CWE-94npm

binary-parser before 2.3.1 Code Injection via String-Typed Parser Options

CVE-2026-134814 · published 2026-11-22

In plain words: this type of bug lets someone run their own code inside the application (code injection). A fixed release is listed.

Summary

CVE-2026-134814 affects binary-parser (npm) < 2.3.1: Code Injection via String-Typed Parser Options (CWE-94). Fixed in 2.3.1. CVSS 4.0 base score 9.2 (Critical), assigned by VulnCheck. Published 2026-11-22 by VulnCheck. Credit: Zachariah Mithani (AploSec).

binary-parser before 2.3.1 contains a code injection vulnerability that allows attackers controlling parser definitions to inject JavaScript through string-typed options passed unvalidated by Context.generateOption(). Attackers can supply crafted length, lengthInBytes, key, tag, offset, or namely() alias values to execute arbitrary JavaScript in the Node.js process when the parser is compiled.

Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

Remediation

Upgrade binary-parser to 2.3.1 or later. Releases in the affected range (< 2.3.1) are vulnerable. See the linked advisory for details on affected release lines.

Timeline

  • 2026-11-22 CVE published

References

Severity
Critical 9.2CVSS 4.0, scored by VulnCheck in the CVE record
Package
binary-parser
Ecosystem
npm
Affected
< 2.3.1
Fixed
2.3.1
Weakness
CWE-94
CNA
VulnCheck
Credit
Zachariah Mithani (AploSec)finder