Binary-parser: code injection
HighAI-generated2026-11-23
- CVE
- CVE-2026-134814
- Severity
- High (CVSS 8.1)
- Attack conditions
- Remotely, over the network · No account needed · No user action needed
- Exploitation probability (EPSS)
- 2.1% (within 30 days; FIRST EPSS, 27 November 2026)
Summary
The binary-parser library versions prior to 2.3.1 are vulnerable to a code injection flaw. An attacker can cause arbitrary JavaScript to run in the Node.js process.
Details
According to the NVD record, the binary-parser package before version 2.3.1 has a code injection vulnerability. The flaw occurs because certain string-typed options are passed to Context.generateOption() without validation, allowing crafted values such as length, lengthInBytes, key, tag, offset, or namely() to be injected.
An attacker who can control the parser definitions can supply these malicious values and cause the parser to execute arbitrary JavaScript code when it is compiled, potentially compromising the entire Node.js application.
What to do
The source record does not name a specific patch, fixed version or workaround. General measures:
- Follow the vendor's security advisories.
- Apply the update when it is released.
- Limit access to the product as much as possible, especially from the internet.
Sources
Timeline
- 22 November 2026 NVD record published
- 23 November 2026 This article was written