"Parsing untrusted binary data with a trusted parser definition is not affected," Keichi Takahashi, who maintains the library, said.
CVE-2026-134814: scope and severity
A critical code injection vulnerability, tracked as CVE-2026-134814, was disclosed in the binary-parser library and affects versions prior to 2.3.1. The NIST National Vulnerability Database lists the vulnerability and describes it as allowing "attackers controlling parser definitions to inject JavaScript through string-typed options passed unvalidated by Context.generateOption()." The entry reports CVSS scores of 9.2 / 8.1, marking the flaw as high severity when the attacker controls parser definitions used during parser compilation.
How Context.generateOption() permits JavaScript injection
The vulnerability stems from user-controlled string options being inserted directly into generated JavaScript without adequate validation. According to the NVD description and the project's advisory, attackers who can supply crafted values for certain parser options can execute arbitrary JavaScript in the host Node.js process when the parser is compiled. The parser options specifically named as vectors are:
- length
- lengthInBytes
- key
- tag
- offset
- the alias passed to namely()
The NVD summary states: "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."

Your scanner finds 4,000 vulns. Which 12 matter?
Nubivance is a Rapid7 Registered Partner delivering vulnerability management as a service - scanning, risk-based prioritization, and remediation follow-through across IT and OT.
Fix the backlogProject maintainer's response and the November 11, 2026 advisory
On November 11, 2026, the project maintainer issued an advisory explaining that the problem arose because some user-controlled string options were inserted directly into generated JavaScript code without adequate validation. The maintainer said the options are now validated as identifier paths and gave examples: "These options are now validated as identifier paths (e.g. foo, $parent.len). Expressions such as 'len - 1' are rejected; use a function instead." That change targets the specific insertion points used by Context.generateOption().
CVE-2026-1245: an incomplete, earlier fix
The newly disclosed CVE-2026-134814 is also described as an incomplete fix for a previous code injection issue, CVE-2026-1245, which received a fix in January 2026. CVE-2026-1245 carried a CVSS score of 6.5 and was attributed to insufficient validation of field names and encoding parameters. The project's recent advisory and the NVD link the current disclosure to that prior vulnerability, indicating the recent hardening continues a short remediation history.
What this means for technologists, affected enterprises, and end users
- Technologists and security teams: Review any code that compiles parsers from externally supplied or user-controlled parser definitions. The NVD and the maintainer identify Context.generateOption() and the listed string-typed options as the vectors; those code paths are the immediate focus for inspection and remediation.
- Affected enterprises and procurement leaders: Ensure deployments using binary-parser are running version 2.3.1 or later. Upwind Security advised on X that the flaw "allows attackers controlling parser definitions to inject and execute arbitrary JavaScript within the host Node.js process upon parser compilation," and recommended updating to the latest version.
- End users and application owners parsing external content: Note the maintainer's clarification that "Parsing untrusted binary data with a trusted parser definition is not affected." The risk described applies when an attacker can control or supply the parser definition itself rather than only the binary data being parsed.
The public record for this issue is narrow but specific: a high-severity code injection vector through string-typed options in Context.generateOption(), a maintainer's validation change to require identifier-path syntax, and a call to update the library. Whether the tightened validation fully closes the class of insertion-based code-injection weaknesses will be judged by follow-on testing and any future advisories.
https://thehackernews.com/2026/11/critical-binary-parser-flaw-enables.html




