MEDIUM6.5
GHSA-m39p-34qh-rh3w
binary-parser library has a code injection vulnerability
Quick fix
GHSA-m39p-34qh-rh3w — binary-parser: upgrade to the fixed version with the command below.
npm install binary-parser@2.3.0Details
A code injection vulnerability in the binary-parser library prior to version 2.3.0 allows arbitrary JavaScript code execution when untrusted values are used in parser field names or encoding parameters. The library directly interpolates these values into dynamically generated code without sanitization, enabling attackers to execute arbitrary code in the context of the Node.js process.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-1245[ADVISORY]
- https://github.com/keichi/binary-parser/pull/283[WEB]
- https://github.com/keichi/binary-parser[PACKAGE]
- https://kb.cert.org/vuls/id/102648[WEB]
- https://www.cve.org/CVERecord?id=CVE-2026-1245[WEB]
- https://www.kb.cert.org/vuls/id/102648[WEB]
- https://www.npmjs.com/package/binary-parser[WEB]