CVE-2026-1245: binary-parser library has a code injection vulnerability
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.
Published Jan 20, 2026 · Updated Jan 21, 2026
Affected packages
binary-parser
- Ecosystem
- npm
- Affected
- < 2.3.0
- Fixed in
- 2.3.0
- Check
npm ls binary-parser
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to sei-vsarvepalli.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-1245
- https://github.com/keichi/binary-parser/pull/283
- https://www.kb.cert.org/vuls/id/102648
- https://github.com/keichi/binary-parser
- https://kb.cert.org/vuls/id/102648
- https://www.cve.org/CVERecord?id=CVE-2026-1245
- https://www.npmjs.com/package/binary-parser
- https://github.com/advisories/GHSA-m39p-34qh-rh3w
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
