Command injection in steveukx git-js
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-77.
Summary
simple-git, an interface for running git commands in any node.js application, enables applications to execute Git operations from JavaScript. Prior to 4.0.0, the default blockUnsafeOperationsPlugin compares parsed option names with literal dangerous option spellings while Git accepts unambiguous long-option abbreviations. Attacker-influenced push arguments such as abbreviated --receive-pack or --exec forms can therefore bypass detectVulnerableFlags, reach git push against a local or file remote or an attacker-influenced receive-pack target, and cause Git to invoke an attacker-selected command in consumers that expose those arguments. The clone-side abbreviation handling does not protect the push path. This issue is fixed in 4.0.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| steveukx | git-js | before 4.0.0 | 4.0.0 | Patch available | CNA |
| — | simple-git (npm) | before 4.0.0 | 4.0.0 | Patch available | GHSA-858h-whjf-mvg5 |
- git-js Vendorsteveukx Affected before 4.0.0 Fixed in 4.0.0 Patch available CNA
- simple-git (npm) Vendor— Affected before 4.0.0 Fixed in 4.0.0 Patch available GHSA-858h-whjf-mvg5
Remediation
- Fix · CNA git-js (steveukx) Fixed in 4.0.0
- Fix · GHSA-858h-whjf-mvg5 simple-git (npm) Fixed in 4.0.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Build of Keycloak | Affected | No fix yet |
Not affected: 5 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
Timeline
- 2026-10-02 Threatist record created from CVE-2026-102827
- 2026-10-06 Alias added: GHSA-858h-whjf-mvg5
- 2026-10-06 Fix available: npm/[email protected] · GHSA-858h-whjf-mvg5
- 2026-10-06 CVSS score added · GHSA-858h-whjf-mvg5
- 2026-10-06 Weakness changed · GHSA-858h-whjf-mvg5
- 2026-10-06 6 new references · GHSA-858h-whjf-mvg5
- 2026-10-09 CVSS score added · NVD
- 2026-10-09 Priority changed: LOW → MEDIUM
- 2026-10-23 Affected versions changed · Red Hat
- 2026-10-23 CVSS score added · Red Hat
- 2026-10-26 Affected versions changed · Red Hat
References
Patch 2
More steveukx Simple-git vulnerabilities
- TI-2026-22598 simple-git has blockUnsafeOperationsPlugin bypass via case-insensitive protocol.allow config key that enables RCE CVSS 3.1CRITICAL 9.8
- TI-2022-09464 Remote code execution (RCE) in simple-git CVSS 3.1CRITICAL 9.8
- TI-2026-06084 Code injection in simple-git CVSS 4.0CRITICAL 9.2
- TI-2022-09425 Code injection in simple-git CVSS 3.1CRITICAL 9.8
- TI-2026-65515 simple-git allows command execution through unblocked Git configuration includes CVSS 3.1HIGH 8.1
- TI-2026-22597 simple-git has Command Execution via Option-Parsing Bypass CVSS 3.1HIGH 8.1
Sources
- CVE-2026-102827 · CVE Program
- CVE-2026-102827 · NVD
- FIRST EPSS
- GHSA-858h-whjf-mvg5 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-102827 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences