CVE-2026-49987 Details
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.
A command injection vulnerability allowing remote code execution has been identified in Repomix versions prior to 1.14.1. The issue arises in the 'execGitShallowClone' function within 'src/core/git/gitCommand.ts', where the '--remote-branch' argument is passed directly to Git commands without proper validation or sanitization. This oversight allows attackers to inject arbitrary Git options, bypassing security checks and executing commands via local or SSH-based transports.
Users are advised to update Repomix to version 1.14.1 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx | CISA-ADP | ExploitVendor AdvisoryMitigation |
| https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82 | [email protected] | Patch |
| https://github.com/yamadashy/repomix/releases/tag/v1.14.1 | [email protected] | Release Notes |
| https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx | [email protected] | ExploitVendor AdvisoryMitigation |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| yamadashy repomix | < 1.14.1 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 18, 2026 | Initial Analysis | [email protected] |
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 15, 2026 | New CVE Received | [email protected] |