CVE-2026-49987
published high CVSS 4.0 · 7.5Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| yamadashy | — | repomix< 1.14.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| yamadashy | repomix | < 1.14.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-88 CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
3Provider assertions
2GitHub_M · cna
Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dce2b5245b9a3e2d5dd21c8867a7503102304a3d3ea8e5fac03ce67c0401e546
- Ingested
- 23 Sep 2026, 09:18:17 UTC
- Source record
- Official CVE record