CVE-2026-134814

critical

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.

References

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

https://github.com/keichi/binary-parser/commit/4b26e04c396253e704ad8e41b928d9e31316f62e

https://github.com/keichi/binary-parser/commit/110206bb126a80071158fb0e2e3d7cc658f2bfe4

https://github.com/keichi/binary-parser/blob/v2.3.0/lib/binary_parser.ts#L26-L35

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-132849

Details

Source: Mitre, NVD

Published: 2026-11-22

Updated: 2026-11-22

CVSS v3

Base Score: 8.1

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity: High

CVSS v4

Base Score: 9.2

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

Severity: Critical