CVE-2026-49987
HIGHRepomix: Command Injection (RCE) via `--remote-branch` Argument Injection
Title source: cnaDescription
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.
References (3)
Core 3
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx
X_Refsource_Misc x_refsource_misc
https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82
X_Refsource_Misc x_refsource_misc
https://github.com/yamadashy/repomix/releases/tag/v1.14.1
Scores
CVSS v4
7.5
EPSS
0.0050
EPSS Percentile
39.8%
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
total
Details
CWE
CWE-88
Status
published
Products (1)
yamadashy/repomix
< 1.14.1
Published
Jul 15, 2026
Tracked Since
Jul 16, 2026