Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

binary-parser Code Injection (CVE-2026-134814)

CVE-2026-134814 is a code injection flaw in the npm binary-parser package before version 2.3.1.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-134814
Vendor
keichi
Affected Product
binary-parser
Exploitation
Not confirmed
Published
2026-11-22

The maintainer says string options in a parser definition could reach generated JavaScript without validation. Affected applications must let an attacker influence that definition before the parser is compiled.The advisory was published on 11 November 2026 and names 2.3.1 as the fix. NVD published the CVE record on 22 November 2026. The impact is arbitrary JavaScript execution in the Node.js process that compiles the attacker-influenced parser.

What it allows

How Does CVE-2026-134814 Inject Code?

binary-parser builds JavaScript from a parser definition. The maintainer says earlier validation for CVE-2026-1245 covered field names and encodings, but left other string options unchecked. Those options could be inserted into generated parser source when an application compiled an attacker-controlled definition.

The affected options describe lengths, array keys, choice tags, pointer offsets and named aliases. This is a parser-definition trust boundary, not a flaw triggered by binary data alone. The maintainer explicitly says untrusted binary data parsed with a trusted definition is unaffected.

Our defensive reading is to locate any application flow that accepts external schemas or JSON and turns them into parser definitions. Review how those definitions reach compilation and whether untrusted parties can change them. For broader prioritization, see Brandefense Vulnerability Intelligence software and the vulnerability intelligence glossary.

How Should Teams Prioritize This Flaw?

NVD lists CVSS 4.0 at 9.2 Critical and CVSS 3.1 at 8.1 High, attributing both assessments to disclosure@vulncheck.com. Prioritize deployments where an untrusted party can influence a parser definition before compilation. The maintainer's exposure condition is more specific than the presence of the package alone.

Who is affected

Which binary-parser Installations Are Affected?

The maintainer lists binary-parser versions through 2.3.0 as affected and 2.3.1 as patched. Exposure depends on how an application constructs and compiles parser definitions. A service that accepts externally controlled definitions needs particular attention, while the vendor excludes trusted definitions used on untrusted binary input.

Find the package version in the dependency lockfile and in the running deployment. Trace schema or JSON inputs that can influence parser construction, especially flows that compile definitions after a request or data import. This review establishes whether an affected version is reachable across the trust boundary described by the maintainer.

How Should Teams Fix and Verify CVE-2026-134814?

Upgrade binary-parser to 2.3.1 or later and verify that the deployed Node.js process loads the patched package. The maintainer says 2.3.1 validates these options as identifier paths. Existing expression-based option values may need a function instead, so test legitimate parsers after upgrading.

Until the fix is deployed, keep untrusted users from supplying parser definitions or altering schemas used to compile them. Recheck the actual input path after deployment and record the loaded version in the patch management process. These are our defensive steps derived from the advisory's exposure condition and fix.

Timeline

  1. 2026-11-11

    The binary-parser maintainer published GHSA-xmxc-6c22-m377 and identified 2.3.1 as the patched npm release.

  2. 2026-11-22

    NVD published CVE-2026-134814 with CVSS 4.0 and 3.1 assessments.

What to do

  1. Locate affected applications

    Find binary-parser versions through 2.3.0 in dependency inventories and confirm the version loaded by running Node.js deployments.

  2. Check the trust boundary

    Identify external schema or JSON inputs that can change parser definitions before compilation. Prioritize reachable flows with untrusted definition control.

  3. Upgrade and verify

    Install binary-parser 2.3.1 or later, confirm the running package version, and test legitimate parser definitions after the validation change.

  4. Restrict definition changes

    While upgrading, prevent untrusted parties from supplying or modifying parser definitions that applications compile.

What Brandefense can do

Frequently Asked Questions

What triggers CVE-2026-134814?

An application must compile a parser definition influenced by an attacker. Unvalidated string options in affected versions can then enter generated JavaScript.

Does untrusted binary input alone trigger the flaw?

The maintainer says parsing untrusted binary data with a trusted parser definition is not affected. The exposure concerns untrusted control of the definition.

Which version fixes binary-parser?

The maintainer lists 2.3.1 as patched. Upgrade to 2.3.1 or later and confirm that the running application loads it.

Could the fix change existing parser definitions?

Yes. The maintainer says 2.3.1 rejects expressions in these string options and advises using a function instead. Test legitimate definitions after upgrading.

Sources

  1. Code Injection via String Options in binary-parserkeichi on GitHub
  2. CVE-2026-134814 NVD RecordNIST NVD
  3. Known Exploited Vulnerabilities CatalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →