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.
- Exploited
- No known exploitation
- Fix
- Fixed in 2.3.1
- Who is exposed
- Not reported
Summary
Written by a model
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.
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.
“binary-parser before 2.3.1 contains a code injection vulnerability”
What to do
Upgrade to a fixed version: 2.3.1.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
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"}.Affected versions
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure17/25No login or user action needed, reachable over the network without a login · Unknown: Advisories don't say whether default setups are affected
- Reach10/20Affects npm packages
- Severity9.2/10CVSS 9.2
- No patch0/5No signal
What would change the score
- Would score about 81 if added to CISA KEV
- Would score about 76 if CISA's SSVC rates exploitation active
- Would score about 41 if advisories confirm default setups are exposed
Impact
- Widely usedbinary-parser has 29.2k weekly downloads. npmjs.com
Timeline
- CVE published
- First seen by cve.now
- Posted on X by cve.now
Evidence 7
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · keichi/binary-parser · Advisory GHSA-xmxc-6c22-m377 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-134814 |
| Record | NVD · CVE-2026-134814 |
| Other links 4 | |
| Patch | GitHub · keichi/binary-parser · Commit 110206bb |
| Patch | GitHub · keichi/binary-parser · Commit 4b26e04c |
| Repository | GitHub · keichi/binary-parser · lib/binary_parser.ts · L26-L35 |
| Link | vulncheck.com · advisories/binary-parser-before-2.3.1-code-injection-via-string-typed-parser-options |
Questions about CVE-2026-134814
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: cve.now feed data
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: vulncheck.com, github.com
Which versions are affected by CVE-2026-134814?
binary-parser (npm): before 2.3.1.
Source: cve.now feed data
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: vulncheck.com, github.com
How do I fix CVE-2026-134814?
Upgrade binary-parser to 2.3.1 or later, which is the fixed version.
Source: vulncheck.com, github.com
Related
- CVE-2026-1245
- CVE-2026-131253Remote Code Execution (RCE) through the App Wizard in Splunk SOAR
- CVE-2026-129048WordPress WP Photo Album Plus plugin <= 9.3.06.003 - Remote Code Execution (RCE) vulnerability
- CVE-2026-63411Jane: Instantiation RCE via parameter description -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2026-63412Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2026-63413Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
No corrections so far. Something wrong on this page? Report an error.