# CVE-2026-134814: binary-parser (npm) JavaScript Injection via Malicious Parser Definitions

> binary-parser versions up to and including 2.3.0 interpolate several string-typed parser options (length, lengthInBytes, key, tag, offset, namely() alias) unvalidated into generated JavaScript, so an attacker who controls a parser definition can execute arbitrary JavaScript in the Node.js process when the parser is compiled. The flaw is an incomplete fix for CVE-2026-1245 and is fixed in 2.3.1; parsing untrusted binary data with a trusted definition is not affected.

- **Published:** 2026-11-23T14:01:40Z
- **Last reviewed:** 2026-11-23T22:12:13.658Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6702
- **ID:** TL-2026-6702
- **Severity:** CRITICAL (CVSS 8.1)
- **Category:** VULNERABILITY
- **Status:** PATCHED
- **Detections:** 9 (1 shown free below) · **IOCs:** 10 (2 shown free below)
- **CVEs:** CVE-2026-134814, CVE-2026-1245

## Description

binary-parser is an npm library that compiles declarative parser definitions into JavaScript source at runtime and builds executable parsers from that source with the Function constructor. CVE-2026-1245 (reported by Maor Caplan of Alma Security, codenamed 'ParserPoison', CERT/CC VU#102648) covered unsanitized field names and encoding parameters and was addressed in version 2.3.0.

Per the maintainer advisory GHSA-xmxc-6c22-m377 (published 2026-11-11), that earlier fix validated field names and encodings only. Other string-typed options were still interpolated verbatim into the generated parser source through Context.generateOption(): the 'length' option of string, buffer, array, wrapped and seek types; 'lengthInBytes' and 'key' of array; 'tag' of choice; 'offset' of pointer; and the alias passed to namely(). A crafted value in any of these is emitted as code, so it executes inside the host Node.js process at parser compilation time, with the privileges of that process.

Exploitation requires that the attacker control the parser definition itself, for example in schema-driven or JSON-driven applications that build parsers from user-supplied schemas. The maintainer states that parsing untrusted binary data with a trusted parser definition is not affected. The advisory classifies the issue as CWE-94 and credits @zachariah-mithani as finder. The source reports no in-the-wild exploitation, no public PoC for this CVE, no threat actor and no CISA KEV listing. Upwind Security commented publicly that the flaw lets attackers controlling parser definitions inject and execute arbitrary JavaScript within the host Node.js process on compilation.

Version 2.3.1 validates these options as identifier paths (for example foo or $parent.len) and rejects expressions such as 'len - 1'; the maintainer advises using a function instead. Note the CERT/CC advisory for CVE-2026-1245 names 2.3.0 as the fixed version for that CVE, whereas GHSA-xmxc-6c22-m377 shows 2.3.0 still affected by this follow-on flaw, so 2.3.1 is the safe target. The Hacker News reports the package at about 13,000 weekly downloads. The article lists CVSS as 9.2 / 8.1 without stating versions; the GHSA records CVSS 3.1 8.1 (AV:N/AC:H) and severity High.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1195.001 Supply Chain Compromise: Compromise Software Dependencies and Development Tools
- T1059.007 Command and Scripting Interpreter: JavaScript
- T1203 Exploitation for Client Execution
- T1587.004 Develop Capabilities: Exploits

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Node.js Process Spawning Shell or Downloader (binary-parser CVE-2026-134814 Injection Outcome)** (`TL-2026-6702-SPL-001`)

Behaviour-first detection for the observable result of CVE-2026-134814 (incomplete fix for CVE-2026-1245, CWE-94) in the binary-parser npm package (<= 2.3.0). A crafted string option (length, lengthInBytes, key, tag, offset or the namely() alias) is emitted unvalidated by Context.generateOption() into parser source that the Function constructor compiles, so injected JavaScript runs inside the host Node.js process. A common post-injection step is a child_process call that launches a shell or downloader; this search flags a node process spawning sh/bash/cmd/PowerShell/curl/wget/certutil/bitsadmin and excludes package-manager and dev-tooling parents. It sees only a child process started by injected code; it will not fire if the injected code stays in-process.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1203, T1059.007, T1059.004, T1059.003, T1059.001
- **Data sources:** endpoint_process_creation (Splunk CIM Endpoint.Processes), sysmon, microsoft_defender_for_endpoint
- **Severity:** high
- **Confidence:** medium

### Splunk SPL

````spl
| tstats summariesonly=false count min(_time) as firstTime max(_time) as lastTime from datamodel=Endpoint.Processes where earliest=-24h Processes.parent_process_name IN ("node","node.exe","nodejs") Processes.process_name IN ("sh","bash","dash","zsh","ash","cmd.exe","powershell.exe","pwsh.exe","curl","wget","curl.exe","wget.exe","certutil.exe","bitsadmin.exe") by Processes.dest Processes.user Processes.parent_process Processes.process_name Processes.process
| rename Processes.* as *
| eval parent_process=coalesce(parent_process,"")
```Exclude package-manager lifecycle scripts and dev tooling that legitimately spawn shells from node```
| where NOT match(parent_process, "(?i)(npm-cli[.]js|npx-cli[.]js|yarn|pnpm|node-gyp|corepack|nodemon|jest|vitest|webpack|vite|eslint|turbo)")
| convert ctime(firstTime) ctime(lastTime)
| table firstTime lastTime dest user parent_process process_name process count
````

### Microsoft KQL

```kql
// CVE-2026-134814 binary-parser: node process spawning shell/downloader (injection outcome)
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ ("node", "node.exe", "nodejs")
| where FileName in~ ("sh", "bash", "dash", "zsh", "ash", "cmd.exe", "powershell.exe", "pwsh.exe", "curl", "wget", "curl.exe", "wget.exe", "certutil.exe", "bitsadmin.exe")
| where not(InitiatingProcessCommandLine matches regex @"(?i)(npm-cli[.]js|npx-cli[.]js|yarn|pnpm|node-gyp|corepack|nodemon|jest|vitest|webpack|vite|eslint|turbo)")
| project Timestamp, DeviceName, AccountName, InitiatingProcessCommandLine, FileName, ProcessCommandLine
| order by Timestamp desc
```

### Sigma

```yaml
title: Node.js Spawning Shell or Downloader - binary-parser CVE-2026-134814 Injection Outcome
id: 7b0c2f1e-5d1a-4c7e-9a52-3f6e8d4b1a01
status: experimental
description: Detects a Node.js process launching a shell or download utility, the typical outcome of JavaScript injected through unvalidated binary-parser (<= 2.3.0) parser options (CVE-2026-134814, CWE-94).
references:
    - https://github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377
    - https://thehackernews.com/2026/11/critical-binary-parser-flaw-enables.html
author: Threadlinqs Team
date: 2026/11/23
tags:
    - attack.initial-access
    - attack.t1190
    - attack.execution
    - attack.t1203
    - attack.t1059.007
    - attack.t1059.004
    - attack.t1059.003
    - attack.t1059.001
    - cve.2026-134814
    - cwe.94
logsource:
    category: process_creation
detection:
    selection_parent:
        ParentImage|endswith:
            - '/node'
            - '/nodejs'
            - '\node.exe'
    selection_child:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
            - '/zsh'
            - '/ash'
            - '\cmd.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '/curl'
            - '/wget'
            - '\curl.exe'
            - '\wget.exe'
            - '\certutil.exe'
            - '\bitsadmin.exe'
    filter_devtools:
        ParentCommandLine|contains:
            - 'npm-cli.js'
            - 'npx-cli.js'
            - 'yarn'
            - 'pnpm'
            - 'node-gyp'
            - 'corepack'
            - 'nodemon'
            - 'jest'
            - 'vitest'
            - 'webpack'
            - 'vite'
            - 'eslint'
            - 'turbo'
    condition: selection_parent and selection_child and not filter_devtools
falsepositives:
    - npm lifecycle scripts and build tooling that run via node
    - Applications that intentionally shell out for image conversion, git or deployment helpers
level: high
```

**Known false positives:**

- npm/yarn/pnpm lifecycle scripts and CI runners that invoke node and then sh
- Node.js applications that intentionally call child_process for git, ffmpeg or deployment tasks

**Tuning notes:** Scope to hosts or containers that run services which build parsers from user-supplied schemas/JSON (the only exposed condition for CVE-2026-134814). Allow-list known application parents (by parent_process path) and expected child commands. Extend the exclusion regex for your CI/build tooling. Pair with an inventory check that binary-parser is <= 2.3.0; upgrading to 2.3.1 removes the root cause.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- [indicator] Injection PoC Reproduced via node Command Line (CVE-2026-134814) (locked: unlock with TL Creds)
- Node.js Child Process Harvesting Secrets and Cloud Metadata ([indicator] CVE-2026-134814 Follow-On) (locked: unlock with TL Creds)
- Node.js Child Process Launching Reverse Shell or Encoded PowerShell ([indicator] CVE-2026-134814 C2) (locked: unlock with TL Creds)
- Install of Vulnerable [indicator] Version (<= 2.3.0, CVE-2026-134814) (locked: unlock with TL Creds)
- Node.js Child Process Running Host and User Discovery Commands ([indicator] CVE-2026-134814 Follow-On) (locked: unlock with TL Creds)
- Node.js Spawning Remote Access or File Transfer Tools ([indicator] CVE-2026-134814 Lateral Movement) (locked: unlock with TL Creds)
- Node.js Process Writing Persistence Locations ([indicator] CVE-2026-134814 Post-Exploitation) (locked: unlock with TL Creds)
- Node.js Outbound Connection to Out-of-Band Callback or Tunnel Service ([indicator] CVE-2026-134814) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (2 of 10)

Defanged, TLP:CLEAR.

- File hash: `4b26e04c396253e704ad8e41b928d9e31316f62e`
- File hash: `110206bb126a80071158fb0e2e3d7cc658f2bfe4`

Full set of 10 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Critical binary-parser Flaw Enables JavaScript Injection via Malicious Parser Definitions](https://thehackernews.com/2026/11/critical-binary-parser-flaw-enables.html)
- [GitHub Security Advisory GHSA-xmxc-6c22-m377: Code injection via string options in binary-parser](https://github.com/keichi/binary-parser/security/advisories/GHSA-xmxc-6c22-m377)
- [NVD CVE-2026-134814](https://nvd.nist.gov/vuln/detail/cve-2026-134814)
- [CERT/CC VU#102648: Code injection vulnerability in binary-parser library](https://kb.cert.org/vuls/id/102648)
- [CERT/CC Warns binary-parser Bug Allows Node.js Privilege-Level Code Execution](https://thehackernews.com/2026/01/certcc-warns-binary-parser-bug-allows.html)
- [CVE-2026-1245 record](https://www.cve.org/CVERecord?id=CVE-2026-1245)
- [binary-parser fix PR #283 (sanitization of field names and encodings)](https://github.com/keichi/binary-parser/pull/283)
- [binary-parser GitHub repository](https://github.com/keichi/binary-parser)
- [binary-parser on npm](https://www.npmjs.com/package/binary-parser)
- [Alma Security: ParserPoison - From Schema to Shell in binary-parser](https://alma.security/blog/parserpoison-from-schema-to-shell-in-binary-parser)
- [Upwind Security commentary on X](https://x.com/UpwindMDR/status/2124765459371237532)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6702
