{"affected":[{"defaultStatus":"unaffected","ecosystem":"npm","packageName":"binary-parser","product":"binary-parser","source":"CNA: VulnCheck","vendor":"keichi","versions":[{"lessThan":"2.3.1","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-134814","cwes":["CWE-94"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":9.2,"severity":"critical","source":"CNA: VulnCheck","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","version":"4.0"},{"score":8.1,"severity":"high","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}],"modifiedAt":1795382535654,"publishedAt":1795382535654,"references":[{"source":"CNA: VulnCheck","tags":["vendor-advisory"],"url":"https://github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/keichi/binary-parser/commit/110206bb126a80071158fb0e2e3d7cc658f2bfe4"},{"source":"CNA: VulnCheck","tags":["patch"],"url":"https://github.com/keichi/binary-parser/commit/4b26e04c396253e704ad8e41b928d9e31316f62e"},{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/keichi/binary-parser/blob/v2.3.0/lib/binary_parser.ts#L26-L35"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/binary-parser-before-2.3.1-code-injection-via-string-typed-parser-options"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/keichi/binary-parser/commit/110206bb126a80071158fb0e2e3d7cc658f2bfe4"},{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/keichi/binary-parser/commit/4b26e04c396253e704ad8e41b928d9e31316f62e"}],"revision":"190b764b553e1d2b3bb0ba5625c170fbeff22214db7963796cad716efe0e48ae","sources":[{"modifiedAt":1795382535654,"name":"CNA: VulnCheck","retrievedAt":1795385333304,"url":"https://www.cve.org/CVERecord?id=CVE-2026-134814"}],"ssvc":null,"status":"published","title":"binary-parser before 2.3.1 Code Injection via String-Typed Parser Options","updatedAt":1795385333304}