Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. binary-parser
  4. ›
  5. CVE-2026-1245

CVE-2026-1245: binary-parser library has a code injection vulnerability

January 20, 2026 (updated January 21, 2026)

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

  • github.com/advisories/GHSA-m39p-34qh-rh3w
  • github.com/keichi/binary-parser
  • github.com/keichi/binary-parser/pull/283
  • kb.cert.org/vuls/id/102648
  • nvd.nist.gov/vuln/detail/CVE-2026-1245
  • www.cve.org/CVERecord?id=CVE-2026-1245
  • www.kb.cert.org/vuls/id/102648
  • www.npmjs.com/package/binary-parser

Code Behaviors & Features

Detect and mitigate CVE-2026-1245 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.0

Fixed versions

  • 2.3.0

Solution

Upgrade to version 2.3.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/binary-parser/CVE-2026-1245.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:37:07 +0000.