AI-assisted summary built from NVD and CISA data. Verify against the linked sources before acting.

Summary

binary-parser passes string-typed options such as length, key, tag, offset, and namely() aliases unvalidated into generated code via Context.generateOption(). An attacker who controls parser definitions can inject JavaScript that executes in the Node.js process when the parser is compiled.

Impact: arbitrary JavaScript code execution

Affected technologies

  • binary-parser before 2.3.1
  • Node.js applications using binary-parser

Upgrade binary-parser to 2.3.1 or later and never build parser definitions from untrusted input.

Details

   
CVSS 9.2 (Critical)
Vendor / product keichi binary-parser
Published 2026-11-22
Weakness CWE-94
Vector CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Original description

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.

References

← Threat intelligence dashboard