Critical binary-parser flaw enables JavaScript injection via malicious parser definitions
The Node.js library binary-parser fixed a critical flaw that lets anyone who controls a parser definition run arbitrary JavaScript.
- Affected
- Projects using binary-parser before 2.3.1 that build parser definitions from untrusted input.
- What to do
- Upgrade binary-parser to 2.3.1 and make sure user input never reaches parser options.
The popular Node.js library binary-parser has fixed CVE-2026-134814 (CVSS 9.2): string options such as length, lengthInBytes, key, tag, offset and the namely() alias were inserted into generated code without validation. An attacker who controls parser definitions can run arbitrary JavaScript when the parser is compiled. The fix is in 2.3.1 and also closes an incomplete earlier fix.
- CVE-2026-134814, CVSS 9.2 / 8.1
- Versions before 2.3.1 are affected
- Parsing untrusted data with a trusted parser definition is not affected
- Options are now validated as identifier paths
created 24 November at 16:21