Skip to navigation

Threat reportVulnerabilityTL-2026-6702

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

criticalPATCHED

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. First disclosed .

Key facts

IdentifiersTL-2026-6702, CVE-2026-134814, CVE-2026-1245
Also known asParserPoison (predecessor CVE-2026-1245), GHSA-xmxc-6c22-m377
SeverityCRITICAL
CVSS8.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
First disclosed
EPSSCVE-2026-134814: 0.6% (50.0th percentile); CVE-2026-1245: 0.5% (47.7th percentile)
Affected productskeichi (open source) binary-parser (npm)
Weaknesses (CWE)CWE-94
MITRE ATT&CK techniquesT1059.007 Command and Scripting Interpreter: JavaScript, T1190 Exploit Public-Facing Application, T1195.001 Supply Chain Compromise: Compromise Software Dependencies and Development Tools, T1203 Exploitation for Client Execution, T1587.004 Develop Capabilities: Exploits
MotivationUNKNOWN
Target sectorstechnology, software development
Target regionsGlobal
Detection rules9 (1 shown free)
Sources11 cited sources

Detection coverage

As of 2026-11-23, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-6702 across Splunk SPL, Microsoft KQL and Sigma, covering 10 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Node.js Process Spawning Shell or Downloader (binary-parser CVE-2026-134814 Injection Outcome)

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

| 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

// 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

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. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • [indicator] Injection PoC Reproduced via node Command Line (CVE-2026-134814) · unlock with TL Creds
  • Node.js Child Process Harvesting Secrets and Cloud Metadata ([indicator] CVE-2026-134814 Follow-On) · unlock with TL Creds
  • Node.js Child Process Launching Reverse Shell or Encoded PowerShell ([indicator] CVE-2026-134814 C2) · unlock with TL Creds
  • Install of Vulnerable [indicator] Version (<= 2.3.0, CVE-2026-134814) · unlock with TL Creds
  • Node.js Child Process Running Host and User Discovery Commands ([indicator] CVE-2026-134814 Follow-On) · unlock with TL Creds
  • Node.js Spawning Remote Access or File Transfer Tools ([indicator] CVE-2026-134814 Lateral Movement) · unlock with TL Creds
  • Node.js Process Writing Persistence Locations ([indicator] CVE-2026-134814 Post-Exploitation) · unlock with TL Creds
  • Node.js Outbound Connection to Out-of-Band Callback or Tunnel Service ([indicator] CVE-2026-134814) · unlock with TL Creds

Indicators of compromise

As of 2026-11-23, Threadlinqs Intelligence tracks 10 indicators of compromise for TL-2026-6702.

Sample indicators (2 of 10)

  • File hash: 4b26e04c396253e704ad8e41b928d9e31316f62e
  • File hash: 110206bb126a80071158fb0e2e3d7cc658f2bfe4

Defanged, TLP:CLEAR. Full set of 10 indicators: unlock with TL Creds.

10 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

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.

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 techniques by tactic:

Execution

T1059.007 Command and Scripting Interpreter: JavaScript; T1203 Exploitation for Client Execution

Initial Access

T1190 Exploit Public-Facing Application; T1195.001 Supply Chain Compromise: Compromise Software Dependencies and Development Tools

Resource Development

T1587.004 Develop Capabilities: Exploits

Remediation

Patches

  • binary-parser 2.3.1 validates string options as identifier paths (GHSA-xmxc-6c22-m377)

Immediate actions

  • Upgrade binary-parser to 2.3.1 or later
  • Inventory applications and transitive dependencies that use binary-parser (npm ls binary-parser)
  • Identify code paths that build parser definitions from user-supplied schemas or JSON

Workarounds

  • Do not pass untrusted values into length, lengthInBytes, key, tag, offset or namely() alias
  • Rewrite expressions such as 'len - 1' as functions
  • Keep parser definitions static and hard-coded; parsing untrusted binary data with a trusted definition is not affected

Longer-term hardening

  • Treat parser definitions as trusted code; never construct them from untrusted input
  • Use function-valued options instead of expression strings for length, offset and tag
  • Add software composition analysis to CI to flag vulnerable npm versions
  • Run Node.js services that compile dynamic parsers with least privilege

Affected and fixed versions

  • keichi (open source) — binary-parser (npm)
    Vulnerable versions: <= 2.3.0
    Fixed in: 2.3.1

Timeline

Last updated · revalidated 1× · latest source

  • Patches for CVE-2026-1245 (unsanitized field names and encoding parameters) released in binary-parser 2.3.0, per The Hacker News.
  • CERT/CC records the vendor notification date for the CVE-2026-1245 report.
  • CERT/CC publishes VU#102648 for CVE-2026-1245; reporter credited as Maor Caplan of Alma Security.
  • Alma Security publishes its 'ParserPoison' write-up on the CVE-2026-1245 injection, including a field-name example that runs injected statements.
  • binary-parser v2.3.1 released (commit 4b26e04), validating string-typed options as identifier paths; expression strings such as "len - 1" are now rejected.
  • Maintainer publishes GHSA-xmxc-6c22-m377 'Code injection via string options in binary-parser' (CVSS 3.1 8.1, CWE-94), credits @zachariah-mithani, patched in 2.3.1.
  • binary-parser v3.0.0 released as the latest version (ESM only, requires Node.js 22.12 or later); separate from the 2.3.1 security fix.
  • NVD publishes CVE-2026-134814 (CNA: VulnCheck) with CVSS 3.1 8.1 HIGH and CVSS 4.0 9.2, CWE-94; status Received.
  • CronUp publishes an analysis of CVE-2026-134814 stating no public IOCs or verifiable active exploitation were found.
  • The Hacker News reports CVE-2026-134814 as an incomplete fix for CVE-2026-1245; Upwind Security comments publicly. No exploitation or PoC is reported.

Update history

Sources cited

Drafted by the Threadlinqs research pipeline from 11 sources; published ; last updated .

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats