CVE-2026-1245 Details
Description
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.
A code injection vulnerability has been identified in the binary-parser library for Node.js, affecting versions prior to 2.3.0. This vulnerability allows the execution of arbitrary JavaScript code when untrusted input is used in parser field names or encoding parameters. The library dynamically generates parser code at runtime, incorporating these untrusted values without proper validation or sanitization. As a result, attackers can manipulate the generated code to execute malicious scripts within the Node.js process, potentially leading to unauthorized access to local data, manipulation of application logic, or execution of system commands, depending on the deployment environment.
Users should upgrade to binary-parser version 2.3.0 or later, where input validation has been implemented to prevent this vulnerability. Additionally, developers should avoid using untrusted data in parser definitions.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 21, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.kb.cert.org/vuls/id/102648 | CVE | Third Party Advisory |
| https://github.com/keichi/binary-parser | [email protected] | Product |
| https://github.com/keichi/binary-parser/pull/283 | [email protected] | Patch |
| https://kb.cert.org/vuls/id/102648 | [email protected] | Third Party Advisory |
| https://www.npmjs.com/package/binary-parser | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| keichi binary-parser | < 2.3.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Feb 3, 2026 | Initial Analysis | [email protected] |
| Jan 21, 2026 | CVE Modified | CISA-ADP |
| Jan 21, 2026 | CVE Modified | [email protected] |
| Jan 20, 2026 | CVE Modified | CVE |
| Jan 20, 2026 | New CVE Received | [email protected] |