binary-parser < 2.3.1: Code Injection via String-Typed Parser Options (CVE-2026-134814, CVSS 9.2)

Check your own app — free, in about a minute.

The free mini-scan checks your live homepage for TLS/HTTPS basics, response security headers, cookie flags, exposed sensitive files, Firebase/Supabase backend rules, and the WordPress plugin versions your site exposes. You get a score and the finding titles — no account, no card.

Run the free mini-scan →

binary-parser < 2.3.1: Code Injection via String-Typed Parser Options (CVE-2026-134814, CVSS 9.2)

binary-parser is a small Node.js library for declaratively parsing binary data — you describe the layout of a buffer, and it generates the parser for you. The generation step is where the flaw lives: string-typed options in a parser definition are passed unvalidated into the code the library generates, so a definition built from attacker-controlled values becomes arbitrary JavaScript executing in your Node.js process. The fix is one patch version — 2.3.1, released with the disclosure — and the check is your lockfile, not a URL. If you ship Node services, run npm ls binary-parser today.

What Happened

CVE-2026-134814 is a code injection flaw in keichi binary-parser, rated CVSS 9.2 (Critical, v4.0) — CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H — and 8.1 under CVSS 3.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H). The underlying weakness is CWE-94, improper control of generation of code — code injection.

Am I Affected?

Any Node service with binary-parser below 2.3.1 in its dependency tree — check npm ls binary-parser or search your lockfile, not the deployed URL. A URL scan cannot see your dependency tree, and this flaw lives in developer-supplied parser definitions, not in a remotely observable version banner. The free mini-scan at preshipit.com/free-scan checks the live app — the lockfile is the crime scene for this one, and only you can read it.

What To Do Now

  1. Update binary-parser to version 2.3.1 or later, now. The fix validates the string-typed options before they reach code generation. There is no configuration workaround that preserves the old behavior safely.
  2. Audit where your parser definitions come from. The update closes the injection sink; the exposure is any definition built from untrusted input. If a parser definition is assembled from user input, a file, or a remote response, that assembly point is the real vulnerability — treat parser definitions like query parameters and never build them from strings you do not control.
  3. Check the rest of the tree while you are in the lockfile. A dependency audit is cheapest when it is already open: confirm nothing else in the tree is pinned below a known fix, and make the lockfile check part of the deploy pipeline rather than a one-off.

The Bigger Lesson

String-typed options that reach code generation are code injection. A parser library that compiles definitions into JavaScript is a compiler, and its inputs are source code — every string that flows into the generated code needs the same treatment as a template variable in a query: validated, escaped, or — better — never interpolated at all. When a library's job is to turn your description of data into running code, the security question is the same as for any other code-generation path: who controls the description?

Related: The LiteLLM Supply-Chain Compromise: Malicious 1.107.0 Stole Credentials for About Two Hours on October 21 — the same class in a different shape: a dependency you did not write becomes the attacker's code in your process.

The PreShipIt Brief — a short weekly email for people shipping vibe-coded apps: the week's important vulnerabilities and launch-safety checks, in plain English.

New and free. Double opt-in: we email you a confirmation link before anything else arrives. Unsubscribe any time.

Check your own app — free, in about a minute.

The free mini-scan checks your live homepage for TLS/HTTPS basics, response security headers, cookie flags, exposed sensitive files, Firebase/Supabase backend rules, and the WordPress plugin versions your site exposes. You get a score and the finding titles — no account, no card.

Run the free mini-scan →

← Back home · Run a free mini-scan · Scan my app — $29 · See a sample report