CVE-2026-1245
MEDIUM 6.5CVSS 3.1binary-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
- 20 Jan 2026
- Last modified
- 17 Jun 2026
- Assigned by
- cret@cert.org
- NVD status
- Analyzed
- Weakness
- CWE-94
- Also known as
- GHSA-m39p-34qh-rh3w
- Sources
- NVDJSONOSV GHSA-m39p-34qh-rh3wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | keichi | binary-parsercpe:2.3:a:keichi:binary-parser:*:*:*:*:*:node.js:*:* |
< 2.3.0 | 2.3.0 |
| OSV | npm | binary-parser | < 2.3.0 | 2.3.0 |
References
- https://github.com/keichi/binary-parser · Product, PACKAGE
- https://github.com/keichi/binary-parser/pull/283 · Patch, WEB
- https://kb.cert.org/vuls/id/102648 · Third Party Advisory, WEB
- https://www.npmjs.com/package/binary-parser · Product, WEB
- https://www.kb.cert.org/vuls/id/102648 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-1245 · ADVISORY
- https://www.cve.org/CVERecord?id=CVE-2026-1245 · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 20 Jan 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Jan 2026)