CriticalCVECVE-2026-134814
Critical binary-parser Flaw Enables JavaScript Injection via Malicious Parser Definitions
The Hacker News·Source published ·1 min read
What happened?
A critical security flaw has been disclosed in the popular binary-parser library that could allow an attacker who controls parser definitions to execute arbitrary code. The vulnerability, tracked as CVE-2026-134814 (CVSS score: 9.2 / 8.1), is a case of code injection impacting binary-parser versions prior to 2.3.1.
Key details
- A critical code injection flaw exists in binary-parser versions before 2.3.1.
- Attackers controlling parser definitions can inject JavaScript via string-typed options.
- Crafted length, lengthInBytes, key, tag, offset, or namely alias values trigger arbitrary code execution.
- User-controlled string options were inserted directly into generated JavaScript without adequate validation.
- Parsing untrusted binary data with a trusted parser definition is not affected by this flaw.
- Options are now validated as identifier paths and expressions like 'len - 1' are rejected.
- This vulnerability is an incomplete fix for CVE-2026-1245 from January 2026.
What is affected?
- binary-parser versions prior to 2.3.1 are affected.
Summarised by SecOraLens from The Hacker News. Always read the original source before acting. How SecOraLens verifies advisories.
What to do next
Hunt for this in your environmentPick a hypothesis, see where it sits on the MITRE ATT&CK model and get ready-to-run Sigma, Splunk, Sentinel and Elastic queries. Free to try.Open the Threat-Hunt Workbench →Get advisories like this by emailNew advisories delivered as they publish, each traced to its original source. Unsubscribe any time.Subscribe →Using this for a team?Paid plans add detection content, the full workbench and archive search. Not sure which fits? Ask us for a walkthrough.See plans →
For CISOs and SOC leads
Brief your board. Brief your team.
Executive risk briefs for governance, technical kill-chains for the SOC — delivered as advisories publish. Critical alerts within 1 hour. No spam, unsubscribe anytime.
