HighVulnerabilityPatch available

The Hacker News reports binary-parser code injection flaw, fixed in 2.3.1

The Hacker News reports a binary-parser code injection flaw before 2.3.1; the maintainer lists 2.3.1 as patched, so upgrade.

Published
Fixed in
binary-parser 2.3.1
Exploitation
No, neither source reports exploitation in the wild

Live scores

CVE-2026-134814
EPSS
0.006
low predicted chance of attack
VEDAS
0.969
strong exploit evidence
On CISA KEV
Not listed
Detection rule
No public rule yet

Live scores

CVE-2026-1245
EPSS
0.006
low predicted chance of attack
VEDAS
0.066
little exploit evidence
On CISA KEV
Not listed
Detection rule
No public rule yet

What happened

The Hacker News reports a code injection flaw in the binary-parser library that, it says, could let an attacker who controls parser definitions execute arbitrary code. The outlet attributes the identifier CVE-2026-134814 to the flaw and says it affects versions before 2.3.1. It cites a CVSS score of “9.2 / 8.1” and quotes the NVD description, which says crafted length, lengthInBytes, key, tag, offset or namely() alias values can run arbitrary JavaScript in the Node.js process when the parser is compiled. Here is CVE-2026-134814 on NVD.

According to the maintainer’s GitHub advisory, published on Nov 11, 2026, several string-typed options were interpolated verbatim into the generated parser source. The advisory lists the affected options:

  • length of string, buffer, array, wrapped and seek
  • lengthInBytes and key of array
  • tag of choice
  • offset of pointer
  • the alias passed to namely()

The advisory rates the issue High (CVSS 8.1, CWE-94), lists affected versions as 2.3.0 and earlier, and names the patched version as 2.3.1. It credits zachariah-mithani as the finder.

The maintainer says the fix for CVE-2026-1245 validated field names and encodings but left other options exposed. The Hacker News describes the new issue as an incomplete fix for that earlier flaw, which it says was fixed in January 2026. It also quotes Upwind Security, in an X post, describing the same injection and execution within the host Node.js process. The Hacker News advises users to update to the latest version of the library, without naming a version.

What is not confirmed: neither source reports exploitation in the wild. The GitHub advisory itself shows “No known CVE” in its CVE ID field, so the link between that advisory and CVE-2026-134814 rests on The Hacker News report and the NVD description it quotes. The Hacker News gives the critical label and 9.2 score, while the maintainer’s advisory gives High and 8.1.

Am I affected?

According to the maintainer’s advisory, you are potentially affected if both of these apply:

  • You use the binary-parser npm package at version 2.3.0 or earlier.
  • An attacker can control the parser definition itself, for example in schema- or JSON-driven parsers.

The maintainer states that “Parsing untrusted binary data with a trusted parser definition is not affected.” Whether your own application lets outside parties influence parser definitions is not something the sources can tell you.

What to do now

  1. Check which version of binary-parser your projects and dependency tree resolve to.
  2. Upgrade to 2.3.1, the patched version named in the maintainer advisory. The Hacker News separately advises updating to the latest version.
  3. After upgrading, expect stricter validation: per the maintainer, the affected options must now be identifier paths such as foo or $parent.len. Expressions such as len - 1 are rejected, and the maintainer says to use a function instead.
  4. Review whether any parser definitions in your code are built from external input. The sources do not describe other mitigations.

Sources