Critical binary-parser vulnerability enables arbitrary code execution via malicious definitions

Executive Briefing
“A critical security flaw in the popular binary-parser library allows attackers who control...”
Key Takeaways
- 1.The vulnerability tracked as CVE-2026-134814 carries a CVSS score of 9.2 and impacts binary-parser versions prior to 2.3.1.
- 2.Attackers can inject malicious JavaScript by supplying crafted unvalidated options such as length, key, tag, offset, or namely() alias values.
- 3.Project maintainer Keichi Takahashi stated the problem arose from user-controlled string options being inserted directly into generated JavaScript code without adequate validation.
A critical security flaw in the popular binary-parser library allows attackers who control parser definitions to execute arbitrary code.
Vulnerability details and exploitation mechanism
The vulnerability tracked as CVE-2026-134814 carries a CVSS score of 9.2 and impacts binary-parser versions prior to 2.3.1.
Attackers can inject malicious JavaScript by supplying crafted unvalidated options such as length, key, tag, offset, or namely() alias values.
Project maintainer Keichi Takahashi stated the problem arose from user-controlled string options being inserted directly into generated JavaScript code without adequate validation.
Impact analysis and mitigation measures
This flaw creates the risk of arbitrary code execution within the host Node.js process during parser compilation if the definition is manipulated.
The maintainer updated the library to validate options as identifier paths while rejecting legacy math expressions and requiring function alternatives.
Open questions
The reports do not specify whether active in-the-wild exploitation campaigns have successfully leveraged this flaw.
The exact scope of impact on enterprise applications deeply dependent on this library remains fully unquantified.







