CVE-2026-1245

critical

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.

References

https://www.npmjs.com/package/binary-parser

https://www.kb.cert.org/vuls/id/102648

https://kb.cert.org/vuls/id/102648

https://github.com/keichi/binary-parser/pull/283

https://github.com/keichi/binary-parser

Details

Source: Mitre, NVD

Published: 2026-01-20

Updated: 2026-01-21

Risk Information

CVSS v2

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Severity: High

CVSS v3

Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity: Critical