CVE-2026-49987: CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in yamadashy repomix
Repomix is a tool that packs repositories into AI-friendly files. Prior to 1.14.1, src/core/git/gitCommand.ts execGitShallowClone passes the --remote-branch value directly to git fetch and git checkout without validation or --end-of-options, allowing --upload-pack or other Git option injection that bypasses validateGitUrl() dangerous parameter checks and can execute commands through local or SSH-style transports. This issue is fixed in version 1.14.1.
AI Analysis
Technical Summary
The repomix tool versions before 1.14.1 contain an argument injection vulnerability (CWE-88) in the src/core/git/gitCommand.ts file. Specifically, the execGitShallowClone function passes the --remote-branch parameter directly to git fetch and git checkout commands without validation or the use of --end-of-options. This improper neutralization of argument delimiters allows attackers to inject additional Git options like --upload-pack, circumventing the validateGitUrl() checks and potentially executing arbitrary commands through local or SSH-style Git transports. The vulnerability has a CVSS 4.0 score of 7.5 (high severity) and is addressed by updating to repomix version 1.14.1.
Potential Impact
An attacker can exploit this vulnerability to inject arbitrary Git command options, potentially leading to command execution on the system where repomix is run. This bypasses existing URL validation protections and can compromise the integrity and security of the repository operations. The impact includes high confidentiality, integrity, and availability risks as indicated by the CVSS vector.
Mitigation Recommendations
This vulnerability is fixed in repomix version 1.14.1. Users should upgrade to version 1.14.1 or later to remediate this issue. No official patch or workaround is indicated beyond upgrading. Since this is not a cloud service, remediation depends on applying the fixed version.
CVE-2026-49987: CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in yamadashy repomix
Description
Repomix is a tool that packs repositories into AI-friendly files. Prior to 1.14.1, src/core/git/gitCommand.ts execGitShallowClone passes the --remote-branch value directly to git fetch and git checkout without validation or --end-of-options, allowing --upload-pack or other Git option injection that bypasses validateGitUrl() dangerous parameter checks and can execute commands through local or SSH-style transports. This issue is fixed in version 1.14.1.
CVSS v4.0
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The repomix tool versions before 1.14.1 contain an argument injection vulnerability (CWE-88) in the src/core/git/gitCommand.ts file. Specifically, the execGitShallowClone function passes the --remote-branch parameter directly to git fetch and git checkout commands without validation or the use of --end-of-options. This improper neutralization of argument delimiters allows attackers to inject additional Git options like --upload-pack, circumventing the validateGitUrl() checks and potentially executing arbitrary commands through local or SSH-style Git transports. The vulnerability has a CVSS 4.0 score of 7.5 (high severity) and is addressed by updating to repomix version 1.14.1.
Potential Impact
An attacker can exploit this vulnerability to inject arbitrary Git command options, potentially leading to command execution on the system where repomix is run. This bypasses existing URL validation protections and can compromise the integrity and security of the repository operations. The impact includes high confidentiality, integrity, and availability risks as indicated by the CVSS vector.
Mitigation Recommendations
This vulnerability is fixed in repomix version 1.14.1. Users should upgrade to version 1.14.1 or later to remediate this issue. No official patch or workaround is indicated beyond upgrading. Since this is not a cloud service, remediation depends on applying the fixed version.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-02T18:30:51.282Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a57d26668715ace43392469
Added to database: 07/15/2026, 18:33:10 UTC
Last enriched: 07/15/2026, 18:47:29 UTC
Last updated: 07/15/2026, 19:49:04 UTC
Views: 4
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.