binary-parser Flaw Enables JavaScript Execution Through Untrusted Parser Definitions

· Original article ↗

Summary

CVE-2026-134814 lets malicious parser options inject JavaScript when an application compiles parser definitions influenced by untrusted input. binary-parser versions before 2.3.1 are affected; the maintainer released a fix.

Key points

  • The flaw affects binary-parser versions before 2.3.1 and can enable arbitrary JavaScript execution.
  • Exploitation requires an application to compile parser definitions influenced by untrusted input.
  • Insufficient validation of string-based options—including length, key, tag and offset—allows injection into generated JavaScript.
  • The issue is described as an incomplete fix for CVE-2026-1245, patched in January 2026.
  • Applications using trusted parser definitions to process untrusted binary data are not affected by this specific flaw.
  • Version 2.3.1 adds stricter validation; developers are urged to update and review applications that generate parser definitions from external input.

Article Details

Vulnerability Types
  • JavaScript code injection
  • Arbitrary code execution
Severity
Critical; CVSS 9.2 under one scoring assessment
Affected Versions
  • binary-parser versions before 2.3.1
Exploitation Status
unknown
Exploit Availability
unknown
Patch Status
available

MITRE ATT&CK

CVE

Products

Related Articles