November 23, 2026 / news

High-Severity Code Injection in npm binary-parser Fixed in 2.3.1

binary-parser 2.3.1 fixes CVE-2026-134814 (advisory rating High, CVSS 8.1): unchecked string options reach generated code, so attacker-influenced parser definitions can run JavaScript in the Node.js process.

Title: High-Severity Code Injection in npm binary-parser (CVE-2026-134814) Fixed in 2.3.1

Summary: On November 11, 2026, maintainer Keichi Takahashi published advisory GHSA-xmxc-6c22-m377 for the npm binary-parser package, rating the flaw High with a CVSS 8.1 base score and crediting zachariah-mithani as finder; per The Hacker News, which reported the disclosure on November 23, the NVD additionally tracks it as CVE-2026-134814 with a 9.2 base score. binary-parser builds a JavaScript parser from a definition object, and the bug (CWE-94) lies in how options of string type were dropped into the generated parser code with no checks — the earlier fix for CVE-2026-1245 (CVSS 6.5, closed in January 2026) had hardened field names and encodings but left these options injectable. The advisory names schema-driven and JSON-driven parser setups as the typical exposure: wherever a definition is attacker-influenced, injected JavaScript can hide in the length option of string, buffer, array, wrapped or seek, in lengthInBytes and key of array, in the tag of choice, in the offset of pointer, or in the alias given to namely(), and it runs inside the Node.js process the moment the parser gets compiled. The reverse case — feeding attacker-supplied binary bytes through a parser definition the developer authored — stays out of scope. As of 2.3.1 the affected slots only accept identifier paths (such as foo or $parent.len), so definitions that relied on expressions like len - 1 now have to pass a callback instead. Anyone building parsers from dynamic definitions should audit what strings reach those options and upgrade to 2.3.1.

References:

← All news