CRITICAL FLAW FOUND IN BINARY-PARSER

A code injection flaw in the npm package binary-parser lets an attacker who controls a parser definition run JavaScript inside your Node.js process. It follows an earlier fix that did not go far enough. What it means for every team that builds on Node.js, and how to fix it.

Published 23 November 2026, CVE-2026-134814, 9 pages, Mitigata Threat Research

In plain words

A free tool that reads raw computer data has a flaw. Someone who can write the instructions for how it reads data could make it run their own commands on the server. Only programs that let outsiders write those instructions are at risk. Teams that run this tool should update it to version 2.3.1 to protect the server's passwords and files.

For business leaders

CVE-2026-134814 in the binary-parser package lets an attacker who controls a parser definition run JavaScript inside a Node.js process. The advisory rates it Critical, CVSS 9.2 or 8.1 as reported, and no in-the-wild exploitation is reported. Exposure depends on whether untrusted input can shape a parser definition. Code runs with the process's privileges, so secrets, cloud credentials and files are in reach. Find every copy, including indirect ones, and upgrade to 2.3.1, then redeploy. The advisory says a confirmed incident should go to CERT-In within 6 hours under Section 70B, but it is for orientation only, so confirm with compliance. Each week an old version runs leaves that path open.

For security analysts

Technique: code injection, CWE-94. Unvalidated string options reach code that binary-parser generates at runtime through Context.generateOption() and the Function constructor. Affected options: length, lengthInBytes, key, tag, offset and namely() aliases. The attacker needs influence over the parser definition, not the parsed data. Impact: JavaScript execution with Node.js process privileges. Severity: CVSS 9.2 or 8.1 as reported; values may change. Earlier flaw: CVE-2026-1245 (CVSS 6.5), patched in 2.3.0 in January 2026, covered only field names and encoding parameters. Exploit status: no in-the-wild exploitation reported; public proof of concept not stated. Step 1, patch: upgrade to binary-parser 2.3.1 or later, then rebuild and redeploy. Step 2, indirect copies: run npm ls binary-parser --all, yarn why or pnpm why; bump the parent or pin with overrides, resolutions or pnpm.overrides. Step 3, workaround: never build parser definitions from user-controlled data. Step 4, if upgrade is not possible: allow-list field names and aliases, for example ^[A-Za-z_][A-Za-z0-9_]*$, and numeric types for length and offset. Step 5, containment (advisory suggestion): least privilege, minimal secrets, restricted egress. Detection (advisory suggestions): unusual parser definitions; unexpected child processes or outbound connections from Node.js services; option values that are not plain names or numbers.

Key points

CVE ids covered: CVE-2026-1245, CVE-2026-134814

The full report is a PDF that opens with a work email.