Read the docs

Code injection in binary-parser via string-typed parser options

Priority MEDIUM 46CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-94.

Summary

binary-parser before 2.3.1 from keichi contains a code injection flaw in which string-typed parser options are passed unvalidated to Context.generateOption(). An attacker who controls parser definitions can inject JavaScript through options such as length, key, tag, offset or namely() aliases, which the Node.js process runs when the parser is compiled. The flaw is tracked under CWE-94 and has a CVSS 4.0 base score of 9.2 (critical), with network attack requiring no privileges or user interaction but high attack complexity.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

Description from the CNA

binary-parser before 2.3.1 contains a code injection vulnerability that allows attackers controlling parser definitions to inject JavaScript through string-typed options passed unvalidated by Context.generateOption(). Attackers can supply crafted length, lengthInBytes, key, tag, offset, or namely() alias values to execute arbitrary JavaScript in the Node.js process when the parser is compiled.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.02126 82nd percentileScored 2026-11-30
Fix Fixed binary-parser (keichi): 2.3.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
keichibinary-parserbefore 2.3.12.3.1Patch availableCNA
  • binary-parser Vendorkeichi Affected before 2.3.1 Fixed in 2.3.1 Patch available CNA

Remediation

Upgrade binary-parser to version 2.3.1, which is the first fixed version. The sources list no fixed version for any other release line.

Written with Claude Haiku 5.5 from the sources below · 2026-11-23

  • Fix · CNA binary-parser (keichi) Fixed in 2.3.1

Timeline

  1. 2026-11-22 Threatist record created from CVE-2026-134814
  2. 2026-11-23 Alias added: GHSA-hhq6-2gpv-hrf4
  3. 2026-11-24 EPSS moved to the below the 50th percentile
  4. 2026-11-25 EPSS moved to the 50th–90th percentile
  5. 2026-11-28 CISA SSVC decision points changed

References

Sources