CVE-2026-6951 — Vulnerability in simple-git — CVE Details
simple-git is vulnerable to Remote Code Execution
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.05%). Schedule for your next planned update.
Does your project use an affected simple-git version?
Paste your package-lock.json to check it for CVE-2026-6951 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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 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.
Advisory Timeline
- First published April 25, 2026 (215 days ago).
- Last revised September 10, 2026 — 138 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install simple-git@3.36.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| simple-git npm · Affected: All versions | 3.36.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-6951ADVISORY
- https://github.com/steveukx/git-js/commit/89a2294febed5dfe737c4c735d936bb6018746a8WEB
- https://gist.github.com/KKC73/02d1d97f3410756095b501fda0ac8ca6WEB
- https://github.com/steveukx/git-jsPACKAGE
- https://security.snyk.io/vuln/SNYK-JS-SIMPLEGIT-15456078WEB
Frequently Asked Questions
- What is CVE-2026-6951?
- simple-git is vulnerable to Remote Code Execution. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-6951?
- CVE-2026-6951 affects simple-git. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-6951 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 63.4% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-28292CRITICAL
simple-git has blockUnsafeOperationsPlugin bypass via case-insensitive protocol.allow config key enables RCE
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution