CVE-2026-134814
binary-parser before 2.3.1 Code Injection via String-Typed Parser Options
Critical · 9.2Fix available
- CVSS
- 9.2
- EPSS
- 2.13% (p83)
- Published
- 2026-11-22
- Age
- 7d old
- Modified
- 2026-11-28
- Product
- keichi binary-parser
- Aliases
- EUVD-2026-132849, GHSA-xmxc-6c22-m377
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
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.
Fixed in
2.3.1
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | binary-parser | >=0, <2.3.1 | 2.3.1 |
Sources
- NVD · first seen 7d ago · NVD terms of use
- OSV · first seen 7d ago · CC-BY 4.0
- ENISA EUVD · first seen 7d ago · ENISA
- CVE List · first seen 7d ago · CVE Terms of Use
References
- https://github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377 vendor-advisory
- https://github.com/keichi/binary-parser/commit/110206bb126a80071158fb0e2e3d7cc658f2bfe4 patch
- https://github.com/keichi/binary-parser/commit/4b26e04c396253e704ad8e41b928d9e31316f62e patch
- https://github.com/keichi/binary-parser/blob/v2.3.0/lib/binary_parser.ts#L26-L35 technical-description
- https://www.vulncheck.com/advisories/binary-parser-before-2.3.1-code-injection-via-string-typed-parser-options third-party-advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134814.json advisory
- https://github.com/keichi/binary-parser package
- https://nvd.nist.gov/vuln/detail/CVE-2026-134814 advisory