
binary-parser 2.3.1 Patch Addresses Critical Code Injection Flaw
A critical code injection vulnerability, CVE-2026-134814, has been identified in the binary-parser library, affecting versions prior to 2.3.1. The flaw allows attackers to execute arbitrary JavaScript in Node.js processes by supplying crafted string-typed options within parser definitions. The issue stems from insufficient validation in the Context.generateOption() function, which permitted unvalidated user-controlled strings to be inserted directly into generated code. A patch is available in version 2.3.1, which now validates these options as identifier paths and rejects expressions. This vulnerability is considered an incomplete fix for a previous issue, CVE-2026-1245, and carries a CVSS score of 9.2 under the 4.0 standard and 8.1 under the 3.1 standard.
