CVE-2026-6951: Simple git Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-hffm-xvc3-vprc
CVSS 9.8
CWE-94
Published
Advisory Summary

CVE-2026-6951 is a HIGH (CVSS 9.8) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Simple git libraries in the npm ecosystem. The issue involves simple-git is vulnerable to remote code execution. Remediation is available by upgrading affected packages to version 3.36.0.

CVE-2026-6951 at a Glance

CVE Identifier CVE-2026-6951
GHSA Identifier GHSA-hffm-xvc3-vprc
Severity HIGH
CVSS v3.1 Base Score 9.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Simple git
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-6951

To remediate this vulnerability, upgrade all affected Simple git dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

simple-git fixed: 3.36.0
npm install simple-git@3.36.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls simple-git

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-6951, inspect your project dependencies using npm:

npm ls simple-git

Analyze the terminal output to locate any version of Simple git in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.36.0), your application is affected.

Note: The npm ls simple-git command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Simple git, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Versions of the package simple-git before 3.36.0 are vulnerable to Remote Code Execution (RCE) due to an incomplete fix for [CVE-2022-25912](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221) that blocks the -c option but not the equivalent --config form. If untrusted input can reach the options argument passed to simple-git, an attacker may still achieve remote code execution by enabling protocol.ext.allow=always and using an ext:: clone source.

CVE-2026-6951 Affected Simple git Versions

1 component(s)
Fixed Versions:
3.36.0
Product / Package Ecosystem Affected Versions Fixed Version
simple-git
npm
< 3.36.0
3.36.0

References

Frequently Asked Questions

What is CVE-2026-6951?
CVE-2026-6951 is a security vulnerability in Simple git involving simple-git is vulnerable to Remote Code Execution under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Simple git versions are affected?
Affected versions include releases prior to 3.36.0 across affected packages: simple-git.
What version fixes CVE-2026-6951?
Upgrading to 3.36.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is simple-git affected?
Yes, simple-git is affected in releases prior to 3.36.0. Upgrade your dependency to 3.36.0 or later.
What is the CVSS score of CVE-2026-6951?
CVE-2026-6951 has a CVSS v3.1 base score of 9.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-6951?
CVE-2026-6951 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check npm dependencies for CVE-2026-6951?
Run the dependency tree command: 'npm ls simple-git'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hffm-xvc3-vprc",
  "modified" : "2026-05-05T20:12:16Z",
  "published" : "2026-04-25T06:30:23Z",
  "aliases" : [ "CVE-2026-6951" ],
  "summary" : "simple-git is vulnerable to Remote Code Execution",
  "details" : "Versions of the package simple-git before 3.36.0 are vulnerable to Remote Code Execution (RCE) due to an incomplete fix for [CVE-2022-25912](https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-3112221) that blocks the -c option but not the equivalent --config form. If untrusted input can reach the options argument passed to simple-git, an attacker may still achieve remote code execution by enabling protocol.ext.allow=always and using an ext:: clone source.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "simple-git"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.36.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-6951"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/steveukx/git-js/commit/89a2294febed5dfe737c4c735d936bb6018746a8"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/KKC73/02d1d97f3410756095b501fda0ac8ca6"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/steveukx/git-js"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-15456078"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-05T20:12:16Z",
    "nvd_published_at" : "2026-04-25T06:16:16Z"
  }
}