top of page

binary-parser CVE-2026-134814: Version 2.3.0 Is Still Injectable and npm audit Calls It Clean. If Your App Builds Parsers From Input, Go to 2.3.1

Writer: Patrick Duggan
Patrick Duggan
13 minutes ago
5 min read

If your Node.js app uses the npm package binary-parser and builds parser definitions from anything a user, a file or the network supplies, upgrade to 2.3.1 today. Version 2.3.0, the release that fixed the last code injection bug in this library, is still vulnerable to the new one. When we asked npm's advisory service on November 23, it reported no vulnerabilities for 2.3.0 at all.


If your parser definitions are written into your own source code and never change, this path does not reach you. The maintainer says it plainly: "Parsing untrusted binary data with a trusted parser definition is not affected." Upgrade anyway, on your normal schedule.



Am I affected? Check in one minute


  • Which version do you have? Run npm ls binary-parser in each project (it shows transitive copies too), or search package-lock.json for "node_modules/binary-parser" and read the "version" line under it. Anything at 2.3.0 or below is in range. 2.3.1 and 3.0.0 carry the fix.

  • Do you build parsers from input? Search your code for new Parser() and look at where the option values come from. You are exposed if any of these are set from a schema file, JSON, a database row, a plugin, a request body or anything else you did not write by hand: the length of string, buffer, array, wrapped or seek; lengthInBytes or key of array; tag of choice; offset of pointer; or the alias passed to namely(). Schema-driven decoders and plugin systems that let users describe their own binary formats are the obvious shape.

  • Hardcoded definitions only? Then an attacker cannot reach the injection through this bug. Malicious binary data fed to a fixed parser does not trigger it.


What to do


  1. Upgrade to 2.3.1 if you need to stay on CommonJS or older Node.js. It is the fix for the 2.x line.

  2. Or go to 3.0.0, released November 22, if you can. It is ESM-only and requires Node.js 22.12 or later, so treat it as a migration, not a patch.

  3. Expect one breaking change in 2.3.1. The affected options now accept only identifier paths such as "len" or "$parent.len". An expression such as "len - 1" is rejected when the parser compiles; the maintainer's replacement is a function, for example function () { return this.len - 1; }. If your build breaks after the upgrade, that is why, and any definition that used an expression string is one you should look at twice.

  4. Do not rely on npm audit alone for this one. See below.


What is confirmed


From the maintainer's own advisory (GHSA-xmxc-6c22-m377, published November 11, 2026) and the v2.3.1 release notes:


  • The fix for the earlier bug, CVE-2026-1245, "validated field names and encodings, but other string-typed options were still interpolated verbatim into the generated parser source."

  • An attacker who controls a parser definition "could execute arbitrary JavaScript" through the options listed above. binary-parser compiles each definition into JavaScript, so the injected text runs inside your Node.js process when the parser is compiled.

  • Affected: 2.3.0 and earlier. Fixed: 2.3.1, published to npm on November 11.

GitHub's global advisory GHSA-hhq6-2gpv-hrf4 (published November 23, CVE-2026-134814, CWE-94) scores it 9.2 on CVSS 4.0 and 8.1 on CVSS 3.1; the maintainer's own advisory rates it high. The CVSS 3.1 vector carries high attack complexity, which matches the precondition: the attacker has to control the definition, not just the data.


The earlier bug, CVE-2026-1245 (GHSA-m39p-34qh-rh3w, CVSS 3.1 6.5), covered field names and encoding names and was fixed in 2.3.0.


binary-parser was downloaded 120,944 times from npm between October 24 and November 22 (npm's download API). That is a count of downloads, not of exposed applications; most users likely hardcode their parsers.



What is not known


  • Exploitation. None reported in the sources we read, and neither CVE is in CISA's Known Exploited Vulnerabilities catalog as of its November 23 release.

  • How many applications build parsers from untrusted input. Nobody has counted. That number, not the download count, is the exposed population.


The gap: npm audit says 2.3.0 is clean


We asked npm's bulk advisory endpoint, the service npm audit uses, about specific versions on November 23:


  • binary-parser 2.2.1: one advisory, GHSA-m39p-34qh-rh3w (the older, moderate bug). The new critical one is missing.

  • binary-parser 2.3.0: nothing.

The reason is in the records. The maintainer's advisory lists the package and the range (2.3.0 and earlier) but was not in GitHub's global advisory database when we queried it (HTTP 404). The global record that does exist, GHSA-hhq6-2gpv-hrf4, is marked "unreviewed" and names no affected package. OSV's record for the CVE names only the Git repository and two fixing commits, not an npm package. A scanner that matches by package name and version has nothing to match. So the team that did the right thing in January and moved to 2.3.0 is the team its tooling now tells is safe.


This will likely close once GitHub reviews the advisory. Until it does, a clean audit on 2.3.0 is not a clean bill.



What our free check-package returns


Our Membrane is a set of free pre-install checks: check-package for npm, PyPI, RubyGems, Packagist and GitHub Actions, check-repo for a repository someone sent you before you open or run it, check-workflow for script injection in a GitHub Actions workflow, and Dredd for MCP servers before you add one. check-package is a tool on our public Jeevesus MCP server; one call, no key. Here is what it returned on November 23, quoted from the responses:


  • binary-parser 2.2.1: verdict "review", reason "Not malicious, but version 2.2.1 has 2 published vulnerabilities (OSV)." It lists GHSA-m39p-34qh-rh3w (CVE-2026-1245) and CVE-2026-134814 (alias GHSA-xmxc-6c22-m377), the second marked as a "repository-level record (https://github.com/keichi/binary-parser), not package-scoped; range from tag".

  • binary-parser 2.3.0: verdict "review", 1 published vulnerability: CVE-2026-134814, with the same repository-level basis.

  • binary-parser 2.3.1: verdict "allow", 0 known vulnerabilities.

How it catches what npm audit misses: besides OSV's package records, it reads OSV's repository-level CVE records, maps the package to its source repository from the npm registry, and evaluates the fixing commits against the release tags. It says so in the "basis" field, so you can see that this verdict rests on a repository-level record rather than a package advisory. Two limits: severity on that entry is null, because the record carries none we use; and "review" is the right word, not "block": the library is not malicious, and whether you are exposed depends on where your parser definitions come from.




How we know


  • No indicators to feed. This is a library bug: there is no C2, domain or file hash, and no network signature our edge could see. We added nothing to the feed and ran no edge check, because a code injection inside a Node.js process that compiles a parser does not cross our sensors.

  • We had no earlier post on binary-parser; this is our first.

  • Every version result above was read on November 23 from the live services named, not from memory.



Sources


  • Maintainer advisory GHSA-xmxc-6c22-m377, keichi/binary-parser repository, published November 11, 2026 (read through the GitHub repository advisories API).

  • binary-parser release notes for v2.3.1 (November 11), v3.0.0 (November 22) and v2.3.0: https://github.com/keichi/binary-parser/releases

  • GitHub advisory GHSA-hhq6-2gpv-hrf4 / CVE-2026-134814: https://github.com/advisories/GHSA-hhq6-2gpv-hrf4

  • GitHub advisory GHSA-m39p-34qh-rh3w / CVE-2026-1245: https://github.com/advisories/GHSA-m39p-34qh-rh3w

  • OSV record CVE-2026-134814 (api.osv.dev); npm registry metadata and download API; npm bulk advisory endpoint; CISA KEV JSON, release of November 23, 2026.

  • The Hacker News, Ravie Lakshmanan, "Critical binary-parser Flaw Enables JavaScript Injection via Malicious Parser Definitions," November 23, 2026: https://thehackernews.com/2026/11/critical-binary-parser-flaw-enables.html (it also quotes Upwind Security; it traces to the same advisories).



Every indicator in this post is in the feed. Free.

1.58M+ IOCs, STIX 2.1 / TAXII, 88% novel vs ThreatFox, exploited-CVE leads ahead of CISA. No credit card — a free API key in 30 seconds, and you can audit every claim above against the live endpoints.


Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page