CVE-2026-102828: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in steveukx git-js
CVE-2026-102828 is a critical OS command injection vulnerability in the steveukx git-js library, specifically in versions from 3.15.0 up to but not including 4.0.1. The issue arises because the default blockUnsafeOperationsPlugin does not treat trailer.<token>.cmd as unsafe, allowing attacker-controlled input via SimpleGitOptions.config or inline -c arguments to execute arbitrary shell commands with the Node.js process's OS permissions. This vulnerability is fixed in version 4.0.1.
AI Analysis
Technical Summary
The vulnerability in steveukx git-js (simple-git) versions >=3.15.0 <4.0.1 involves improper neutralization of special elements used in OS commands (CWE-78). The default security plugin fails to classify trailer.<token>.cmd as unsafe, enabling an attacker who can control configuration options to inject and execute arbitrary shell commands when git interpret-trailers processes the configured trailer. The commands run with the same OS identity and permissions as the Node.js process running the application. The issue is resolved in version 4.0.1.
Potential Impact
An attacker able to supply malicious input through SimpleGitOptions.config or inline -c arguments can execute arbitrary OS commands with the privileges of the Node.js process. This can lead to full system compromise depending on the Node.js process permissions. The vulnerability is critical with a CVSS 4.0 score of 9.2, indicating high impact and exploitability under certain conditions.
Mitigation Recommendations
Upgrade steveukx git-js to version 4.0.1 or later, where this vulnerability is fixed. Until then, avoid passing untrusted input through SimpleGitOptions.config or inline -c arguments that could be interpreted as trailer.<token>.cmd. Patch status is confirmed fixed in 4.0.1.
CVE-2026-102828: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in steveukx git-js
Description
CVE-2026-102828 is a critical OS command injection vulnerability in the steveukx git-js library, specifically in versions from 3.15.0 up to but not including 4.0.1. The issue arises because the default blockUnsafeOperationsPlugin does not treat trailer.<token>.cmd as unsafe, allowing attacker-controlled input via SimpleGitOptions.config or inline -c arguments to execute arbitrary shell commands with the Node.js process's OS permissions. This vulnerability is fixed in version 4.0.1.
CVSS v4.0
Score 9.2critical
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 >=3.15.0 <4.0.1 involves improper neutralization of special elements used in OS commands (CWE-78). The default security plugin fails to classify trailer.<token>.cmd as unsafe, enabling an attacker who can control configuration options to inject and execute arbitrary shell commands when git interpret-trailers processes the configured trailer. The commands run with the same OS identity and permissions as the Node.js process running the application. The issue is resolved in version 4.0.1.
Potential Impact
An attacker able to supply malicious input through SimpleGitOptions.config or inline -c arguments can execute arbitrary OS commands with the privileges of the Node.js process. This can lead to full system compromise depending on the Node.js process permissions. The vulnerability is critical with a CVSS 4.0 score of 9.2, indicating high impact and exploitability under certain conditions.
Mitigation Recommendations
Upgrade steveukx git-js to version 4.0.1 or later, where this vulnerability is fixed. Until then, avoid passing untrusted input through SimpleGitOptions.config or inline -c arguments that could be interpreted as trailer.<token>.cmd. Patch status is confirmed fixed in 4.0.1.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-29T17:25:25.265Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abc08c9680226ef682285c9
Added to database: 09/29/2026, 18:51:53 UTC
Last enriched: 09/29/2026, 19:06:14 UTC
Last updated: 09/29/2026, 19:06:14 UTC
Views: 6
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.