
Critical Code Injection Flaw in binary-parser Library Enables Arbitrary JavaScript Execution via Malicious Parser Definitions
A critical security vulnerability tracked as CVE-2026-134814 has been disclosed in the widely used binary-parser library, allowing attackers who control parser definitions to inject and execute arbitrary JavaScript code in Node.js environments. The flaw affects all versions prior to 2.3.1 and carries a CVSS score of 9.2, stemming from insufficient validation of user-controlled string options such as length, lengthInBytes, key, tag, offset, and namely() aliases that are directly inserted into generated JavaScript code. This issue represents an incomplete remediation of the earlier CVE-2026-1245 vulnerability, which was addressed in January 2026 but left gaps in field name and encoding parameter validation. According to the project maintainer Keichi Takahashi, only scenarios where attackers can supply malicious parser definitions are impacted, while parsing untrusted binary data with trusted definitions remains unaffected. The NIST National Vulnerability Database and Upwind Security have highlighted the risk, urging immediate updates to version 2.3.1 where options are now validated as identifier paths and expressions are rejected in favor of functions.
The Hacker NewsNov 23, 2026Translated from English