Skip to navigation

Threat reportVulnerabilityTL-2026-6759

Critical simple-git Node.js Library Argument Injection Enables Remote Code Execution (CVE-2026-134815)

criticalPATCHED

A critical argument-injection flaw (CWE-88) in the simple-git npm library lets an attacker who controls input reaching listRemote() or raw() inject git's --exec option and run commands on the host with the privileges of the Node.js process. It affects simple-git below 4.1.0 and @simple-git/argv-parser below 3.0.0, and is fixed in simple-git 4.1.0 and @simple-git/argv-parser 3.0.0.

Key facts

IdentifiersTL-2026-6759, CVE-2026-134815, CVE-2026-6951, CVE-2026-28292, CVE-2022-24433, CVE-2026-28291, CVE-2026-102827
SeverityCRITICAL
CVSS9.2
First disclosed
Affected productssteveukx (git-js) simple-git (npm); steveukx (git-js) @simple-git/argv-parser (npm)
Weaknesses (CWE)CWE-88
MITRE ATT&CK techniquesT1005 Data from Local System, T1059 Command and Scripting Interpreter, T1190 Exploit Public-Facing Application, T1195.001 Compromise Software Dependencies and Development Tools, T1202 Indirect Command Execution, T1565 Data Manipulation
MotivationUNKNOWN
Target sectorstechnology, software-development, cloud-services
Target regionsGlobal
Detection rules9 (1 shown free)
Sources9 cited sources

Detection coverage

As of 2026-11-24, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-6759 across Splunk SPL, Microsoft KQL and Sigma, covering 5 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: CVE-2026-134815 simple-git --exec Injection - Node.js Spawning git ls-remote/archive/fetch-pack/send-pack

Detects the exploitation primitive of CVE-2026-134815 (CWE-88): a node process spawning git with the --exec option (or an abbreviated form such as --exe) on ls-remote, archive --remote, fetch-pack or send-pack. Before simple-git 4.1.0 the allowUnsafePack guard only blocked --exec for push, so untrusted input reaching listRemote()/raw() could make git run an attacker-chosen program as the Node.js user. The research reports no in-the-wild exploitation or public PoC; this rule is behaviour-first and fires on the injected git command line itself.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1190, T1202, T1059
  • Data sources: sysmon, sysmon_for_linux, microsoft_defender_for_endpoint:DeviceProcessEvents
  • Severity: high
  • Confidence: high

Splunk SPL

((index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational") OR (index=linux sourcetype="sysmon:linux")) EventCode=1 earliest=-24h ParentImage IN ("*/node","*/nodejs","*node.exe") Image IN ("*/git","*git.exe") CommandLine="*--ex*"
| regex CommandLine="(?i)\s--ex(e|ec)?(=|\s|$)"
| regex CommandLine="(?i)\b(ls-remote|archive|fetch-pack|send-pack)\b"
| stats count min(_time) AS first_seen max(_time) AS last_seen values(CommandLine) AS git_cmdlines values(ParentCommandLine) AS node_cmdlines BY host, User, ParentImage
| convert ctime(first_seen) ctime(last_seen)

Microsoft KQL

DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName in~ ("git","git.exe")
| where InitiatingProcessFileName in~ ("node","nodejs","node.exe")
| where ProcessCommandLine matches regex @"(?i)\s--ex(e|ec)?(=|\s|$)"
| where ProcessCommandLine matches regex @"(?i)\b(ls-remote|archive|fetch-pack|send-pack)\b"
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessAccountName
| order by Timestamp desc

Sigma

title: simple-git Argument Injection - Node.js Spawning git With --exec (CVE-2026-134815)
id: 7c1e4b52-3a8d-4f96-b0a2-5d9e61c7a431
status: experimental
description: Detects node spawning git ls-remote, archive, fetch-pack or send-pack with an --exec option (or abbreviated --exe), the injection primitive of the simple-git allowUnsafePack bypass.
references:
  - https://nvd.nist.gov/vuln/detail/CVE-2026-134815
  - https://www.upwind.io/blog/threat-post/cve-2026-134815-simple-git-argument-injection-via-exec-enables-host-command-execution
  - https://github.com/steveukx/git-js/releases/tag/simple-git%404.1.0
author: Threadlinqs Team
date: 2026/11/24
tags:
  - attack.initial-access
  - attack.t1190
  - attack.defense-evasion
  - attack.t1202
  - attack.execution
  - attack.t1059
  - cve.2026.134815
logsource:
  category: process_creation
detection:
  selection_parent:
    ParentImage|endswith:
      - '/node'
      - '/nodejs'
      - '\node.exe'
  selection_git:
    Image|endswith:
      - '/git'
      - '\git.exe'
  selection_sub:
    CommandLine|re: '(?i)\b(ls-remote|archive|fetch-pack|send-pack)\b'
  selection_exec:
    CommandLine|re: '(?i)\s--ex(e|ec)?(=|\s|$)'
  condition: all of selection_*
falsepositives:
  - Security testing or red-team validation of simple-git guards
  - Custom tooling that deliberately invokes git archive --remote with --exec
level: high

Known false positives:

  • Security testing or red-team validation of simple-git guards
  • Custom tooling that deliberately invokes git archive --remote with --exec

Tuning notes: Exclude known scanner hosts/accounts. Replace the node parent filter with your service launcher (pm2, npm, docker-init) if node is wrapped. On Linux this needs Sysmon for Linux (or auditd EXECVE mapped to Image/CommandLine/ParentImage). Adjust earliest to match the schedule.

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)
  • CVE-2026-134815 Vulnerable [indicator] / [indicator] Version Installed or Pinned · unlock with TL Creds
  • Node.js to git to Shell/Interpreter/Downloader Process Chain ([indicator] RCE Post-Exploitation) · unlock with TL Creds
  • Payload Download or Reverse Shell Launched by Shell Spawned from git (Command-and-Control Staging) · unlock with TL Creds
  • Git Remote-Helper Execution Options (--exec/--upload-pack/--receive-pack/ext transport) on Remote Sub-commands · unlock with TL Creds
  • Persistence Commands Executed by Shell Spawned from git (Post-Exploitation Following [indicator] RCE) · unlock with TL Creds
  • Project File and Dependency Tampering by Shell Spawned from git (Data Manipulation) · unlock with TL Creds
  • CVE-2026-134815 Post-Exploitation - Program Executed by git --exec Remote Helper · unlock with TL Creds
  • Credential and Secret File Access by Shell Spawned from git ([indicator] RCE Collection) · unlock with TL Creds

Indicators of compromise

As of 2026-11-24, Threadlinqs Intelligence tracks 5 indicators of compromise for TL-2026-6759.

Sample indicators (1 of 5)

  • File hash: cee17ab3419f93cae91801de0d5112f8ee90ec6b

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

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

Technical analysis

CVE-2026-134815 is an argument-injection vulnerability (CWE-88) in simple-git, a widely used Node.js wrapper that shells out to the git binary. VulnCheck assigned the CVE and a CVSS 4.0 base score of 9.2 (Critical). Per the reporting, no authentication or user interaction is needed, attack complexity is high, and there is an attack requirement: the application must pass untrusted input into the vulnerable API in a particular way. Impact to confidentiality, integrity and availability is rated high.

The library ships an opt-in guard, allowUnsafePack, meant to block git options that make git execute an external program. Before simple-git 4.1.0 that guard blocked --exec only for push operations. If untrusted input reaches listRemote() or raw(), an attacker can append --exec to other git sub-commands, namely ls-remote, archive (--remote), fetch-pack and send-pack. Git treats the value as the name of a remote helper program and executes it on the host, so attacker-chosen commands run with the privileges of the Node.js process. Upwind (Roy Kalfon, 2026-11-23) published the write-up of the guard bypass. No payload, PoC, or in-the-wild exploitation is described in any source reviewed.

The fix landed in simple-git 4.1.0 (GitHub release dated 16 November; commit c8ee6bb), where allowUnsafePack now blocks --exec for every command except rebase. The release also adds allowConfig and strict options, a unsafe.recommended level, and a git.cmd tagged-template API that treats every interpolated value as untrusted data that cannot add options or change settings. The detection logic lives in @simple-git/argv-parser, so both packages must be upgraded together (simple-git 4.1.0 and @simple-git/argv-parser 3.0.0). The release notes credit roughly 18 reporters of vulnerability reports and CVE proposals.

This is the latest in a recurring series of simple-git guard bypasses: CVE-2022-24433 (option injection via fetch(), fixed 3.3.0), CVE-2026-28292 (case-sensitivity bypass of the protocol.allow check), CVE-2026-6951 (GHSA-hffm-xvc3-vprc; --config not blocked, fixed 3.36.0), CVE-2026-28291 (short-option variants such as -vu/-nu bypassing -u check, fixed 3.32.0) and CVE-2026-102827 (abbreviated flags such as --exe bypassing literal flag matching in argv-parser; reported fixed in 4.0.0 by Mend/Vulert). Defenders should treat any application that forwards user-controlled repository URLs, branch names or raw git arguments to simple-git as exposed, including indirect copies pulled in as transitive dependencies. Mitigation: upgrade both packages, locate transitive copies with npm ls simple-git, validate inputs against fixed allowlists of repository URLs and branch names, run the Node.js process as a low-privilege user, and use lockfiles with npm ci.

MITRE ATT&CK techniques by tactic:

Collection

T1005 Data from Local System

Execution

T1059 Command and Scripting Interpreter

Initial Access

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

Defense Evasion

T1202 Indirect Command Execution

Impact

T1565 Data Manipulation

Remediation

Patches

  • simple-git 4.1.0
  • @simple-git/argv-parser 3.0.0

Immediate actions

  • Upgrade simple-git to 4.1.0 or later and @simple-git/argv-parser to 3.0.0 or later; both must be updated together
  • Run npm ls simple-git to find indirect copies pulled in by other packages and force-resolve them to the fixed version
  • Stop passing raw user input into listRemote() or raw(); validate against a fixed allowlist of repository URLs and branch names

Workarounds

  • Reject any user-supplied value beginning with a dash before it reaches simple-git, including abbreviated and mixed-case option forms
  • Do not expose listRemote() or raw() to untrusted input until patched

Longer-term hardening

  • Run Node.js services that invoke git as a low-privilege user with no unnecessary secrets or network egress
  • Use lockfiles and npm ci in build systems and review dependency updates before they ship
  • Adopt the git.cmd tagged-template API and the strict / allowConfig options introduced in 4.1.0

Affected and fixed versions

  • steveukx (git-js) — simple-git (npm)
    Vulnerable versions: < 4.1.0
    Fixed in: 4.1.0
  • steveukx (git-js) — @simple-git/argv-parser (npm)
    Vulnerable versions: < 3.0.0
    Fixed in: 3.0.0

Timeline

  • CodeAnt AI publishes research on CVE-2026-28292, a case-sensitivity bypass of simple-git's protocol.allow check (an earlier guard bypass in the same library; vendor-reported date).
  • GHSA-hffm-xvc3-vprc / CVE-2026-6951 published: simple-git blocks -c but not --config, enabling RCE via protocol.ext.allow=always and ext:: sources; fixed in 3.36.0.
  • simple-git 4.1.0 released on GitHub; allowUnsafePack now blocks --exec for every command except rebase, with @simple-git/argv-parser 3.0.0 and new allowConfig, strict and git.cmd features.
  • NVD publishes CVE-2026-134815 (CWE-88); CVSS 4.0 score 9.2 assigned by VulnCheck.
  • Upwind (Roy Kalfon) publishes write-up describing the --exec argument injection that bypasses allowUnsafePack on ls-remote, archive, fetch-pack and send-pack.
  • Cyber Security News reports the flaw and urges upgrading simple-git to 4.1.0 and @simple-git/argv-parser to 3.0.0; no exploitation in the wild or public PoC is stated.

Sources cited

Drafted by the Threadlinqs research pipeline from 9 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