CVE-2026-102827: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in steveukx git-js
CVE-2026-102827 is a command injection vulnerability in the steveukx git-js library prior to version 4.0.0. The issue arises because the default blockUnsafeOperationsPlugin does not properly handle unambiguous long-option abbreviations in Git commands, allowing attacker-controlled push arguments to bypass security checks. This can lead to arbitrary command execution via git push operations. The vulnerability is fixed in version 4.0.0.
AI Analysis
Technical Summary
The vulnerability in steveukx git-js (simple-git) versions before 4.0.0 is due to improper neutralization of special elements used in commands (CWE-77). The default blockUnsafeOperationsPlugin compares parsed option names with literal dangerous option spellings, but Git accepts unambiguous long-option abbreviations. This discrepancy allows attacker-influenced push arguments, such as abbreviated --receive-pack or --exec forms, to bypass detectVulnerableFlags. Consequently, an attacker can cause Git to invoke arbitrary commands during git push operations against local, file, or attacker-influenced receive-pack targets. The clone-side abbreviation handling does not protect the push path. The issue is resolved in version 4.0.0.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary commands on the system running git-js by manipulating git push arguments. This can lead to full compromise of confidentiality, integrity, and availability of the affected system. The CVSS 3.1 score is 8.1 (High), reflecting network attack vector, high impact on confidentiality, integrity, and availability, and requiring no privileges or user interaction but high attack complexity.
Mitigation Recommendations
Upgrade to steveukx git-js version 4.0.0 or later, where this vulnerability is fixed. No other mitigations are specified. Patch status is confirmed fixed in 4.0.0.
CVE-2026-102827: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in steveukx git-js
Description
CVE-2026-102827 is a command injection vulnerability in the steveukx git-js library prior to version 4.0.0. The issue arises because the default blockUnsafeOperationsPlugin does not properly handle unambiguous long-option abbreviations in Git commands, allowing attacker-controlled push arguments to bypass security checks. This can lead to arbitrary command execution via git push operations. The vulnerability is fixed in version 4.0.0.
CVSS v3.1
Score 8.1high
Affected software
steveukx
git-js
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in steveukx git-js (simple-git) versions before 4.0.0 is due to improper neutralization of special elements used in commands (CWE-77). The default blockUnsafeOperationsPlugin compares parsed option names with literal dangerous option spellings, but Git accepts unambiguous long-option abbreviations. This discrepancy allows attacker-influenced push arguments, such as abbreviated --receive-pack or --exec forms, to bypass detectVulnerableFlags. Consequently, an attacker can cause Git to invoke arbitrary commands during git push operations against local, file, or attacker-influenced receive-pack targets. The clone-side abbreviation handling does not protect the push path. The issue is resolved in version 4.0.0.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary commands on the system running git-js by manipulating git push arguments. This can lead to full compromise of confidentiality, integrity, and availability of the affected system. The CVSS 3.1 score is 8.1 (High), reflecting network attack vector, high impact on confidentiality, integrity, and availability, and requiring no privileges or user interaction but high attack complexity.
Mitigation Recommendations
Upgrade to steveukx git-js version 4.0.0 or later, where this vulnerability is fixed. No other mitigations are specified. Patch status is confirmed fixed in 4.0.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-29T17:25:25.265Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6abc08c9680226ef682285c8
Added to database: 09/29/2026, 18:51:53 UTC
Last enriched: 09/29/2026, 19:06:17 UTC
Last updated: 09/29/2026, 19:09:39 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.