6.5 MEDIUM
- CVSS version: 3.1
- Attack vector (AV): NETWORK
- Attack complexity (AC): LOW
- Privileges required (PR): NONE
- User interaction (UI): NONE
- Scope (S): UNCHANGED
- Confidentiality impact (C): LOW
- Integrity impact (I): LOW
- Availability impact (A): NONE
CVE-2026-1245
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.
References
- https://www.npmjs.com/package/binary-parser
- https://kb.cert.org/vuls/id/102648
- https://github.com/keichi/binary-parser/pull/283
- https://github.com/keichi/binary-parser
- https://www.kb.cert.org/vuls/id/102648
- https://github.com/keichi/binary-parser/pull/283
- https://github.com/keichi/binary-parser
- https://www.npmjs.com/package/binary-parser
- https://kb.cert.org/vuls/id/102648
- https://www.kb.cert.org/vuls/id/102648
Affected products
- <2.3.0
- =<2.3.0
Matching in nixpkgs
pkgs.haskellPackages.binary-parser
An efficient but limited parser API specialised to bytestrings
pkgs.haskellPackages.binary-parsers
Extends binary with parsec/attoparsec style parsing combinators