← All advisories
Medium First reported · Updated · 2 sources · 2 articles

binary-parser flaw (CVE-2026-134814) allows JavaScript code injection via parser definitions

A code injection vulnerability in the binary-parser Node.js library, versions before 2.3.1, lets an attacker who controls parser definitions run arbitrary JavaScript. String-typed options such as length, lengthInBytes, key, tag, offset or namely() aliases are passed unvalidated by Context.generateOption() and executed when the parser is compiled. Developers should upgrade to 2.3.1 or later and avoid building parser definitions from untrusted input.

Why Medium

Critical-scored code execution flaw, but exploitation requires control over parser definitions and no active exploitation is reported.

Chance of exploitation (EPSS)

0.6% in the next 30 days, higher than 50.1% of all CVEs. Estimated daily by FIRST.org; for the story's highest-scoring CVE.

Categories

  • Supply Chain & Dependencies
  • Web Technologies

CVEs

  • CVE-2026-134814

Affected products

  • binary-parser (npm) before 2.3.1

Timeline

  • Picked up by Early Warning
  • New source: The Hacker News