Uptycs Threat Bulletins | Cloud Security Insights for Linux and Containers

CVE-2026-134814: binary-parser Code Injection via String-Typed Parser Options

Written by Uptycs Threat Research | Nov 24, 2026, 8:12:41 AM

Severity: CRITICAL (CVSS 4.0 9.2 / CVSS 3.1 8.1) · Exploitation: Public exploit available, no confirmed attacks · Fix available: Yes

Summary

CVE-2026-134814 is a code injection vulnerability (CWE-94) in the binary-parser Node.js library affecting all versions before 2.3.1. The flaw exists in Context.generateOption(), which passes string-typed parser options — such as length, lengthInBytes, key, tag, offset, and namely() alias values — to the parser compiler without validation. An attacker who controls parser definitions can inject arbitrary JavaScript that executes in the Node.js process when the parser is compiled. The vulnerability was discovered by Zachariah Mithani of AploSec and disclosed on 22 November 2026. A patched release, version 2.3.1, is available.

Technical details

The root cause is a lack of input sanitisation in Context.generateOption(): string values supplied as parser configuration options are incorporated directly into generated JavaScript code without escaping or allowlist validation. When the compiled parser is instantiated, the injected code runs in the Node.js process with the same privileges as the application. An attacker must be in a position to influence parser definitions — for example, by supplying untrusted configuration, schema data, or binary format specifications that the application passes to binary-parser.

The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H) reflects network reachability, high attack complexity due to the prerequisite of controlling parser input, and an additional prerequisite condition, but no authentication or user-interaction requirement. Full confidentiality, integrity, and availability impact on the vulnerable component is assessed. The exact code path is documented in the upstream source reference at lib/binary_parser.ts lines 26–35.

Affected products

  • binary-parser (keichi) all versions before 2.3.1 — fixed in 2.3.1

Impact

  • Arbitrary JavaScript execution: An attacker who controls parser definitions can execute arbitrary code within the Node.js process, with no authentication required once that control is achieved.
  • Full confidentiality and integrity compromise: Successful exploitation gives an attacker read and write access to data handled by the process, as reflected in the CVSS high impact ratings for both confidentiality and integrity.
  • Availability impact: The vulnerability can be used to crash or disrupt the Node.js process, causing denial of service.
  • Supply-chain and multi-tenant risk: Applications that accept user-supplied binary format definitions — including parsers built on top of binary-parser — are especially exposed, as the injection point sits within library infrastructure rather than application code.

Exploitation status

No in-the-wild exploitation has been confirmed and this CVE is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog at the time of publication. However, public exploit code was published on cve.now on 22 November 2026, the same day the CVE was disclosed, lowering the barrier to exploitation significantly. Teams running affected versions of binary-parser in internet-facing or multi-tenant Node.js applications should treat this as high-priority and patch promptly.

Recommended actions

  1. Upgrade immediately: Update binary-parser to version 2.3.1 or later using your package manager (e.g., npm install binary-parser@2.3.1 or yarn add binary-parser@2.3.1).
  2. Audit indirect dependencies: Run a software composition analysis scan to identify transitive dependencies on binary-parser that may not be directly visible in your top-level manifest.
  3. Restrict parser input sources: Until patched, ensure that no untrusted or user-controlled data is passed as parser definition options (length, lengthInBytes, key, tag, offset, namely() aliases) to any binary-parser instance.
  4. Verify the fix: After upgrading, confirm the installed version with npm list binary-parser or equivalent, and validate that version 2.3.1 or later is active throughout your dependency tree.
  5. Review for signs of compromise: Examine Node.js process logs and application telemetry for unexpected outbound connections, unusual child process spawning, or anomalous file system activity that could indicate prior exploitation.

How Uptycs helps

Uptycs vulnerability management continuously identifies hosts, containers, and cloud workloads running affected versions of binary-parser — including transitive dependencies — so security teams can prioritize patching based on actual exposure. Uptycs Threat Research is actively monitoring this vulnerability and will update this bulletin if confirmed in-the-wild exploitation or additional indicators of compromise are identified.

References