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
- www.cve.org/CVERecord ↗
- nvd.nist.gov/vuln/detail/CVE-2026-134814 ↗
- github.com/keichi/binary-parser/blob/v2.3.0/lib/binary_parser.ts ↗
- github.com/keichi/binary-parser/commit/110206bb126a80071158fb0e2e3d7cc658f2bfe4 ↗
- github.com/keichi/binary-parser/commit/4b26e04c396253e704ad8e41b928d9e31316f62e ↗
- github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377 ↗
- www.vulncheck.com/advisories/binary-parser-before-2.3.1-code-injection-via-string-typed-parser-options ↗
Related CVEs
← CVE Index: search every CVE from the last 30 days
This product uses the NVD API but is not endorsed or certified by the NVD. CVSS scores do not establish exploitation.