CVE-2026-6951: Simple git Remote Code Execution Vulnerability
HIGHCVE-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
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).
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.
npm install simple-git@3.36.0
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
CVE-2026-6951 Affected Simple git Versions
1 component(s)| 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?
Which Simple git versions are affected?
What version fixes CVE-2026-6951?
Is simple-git affected?
What is the CVSS score of CVE-2026-6951?
What CWE is associated with CVE-2026-6951?
How can I check npm dependencies for CVE-2026-6951?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}