CVE-2026-49987
HIGH 7.5CVSS 4.0repomix Vulnerable to Command Injection (RCE) via `--remote-branch` Argument Injection
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.
- Published
- 15 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-88
- Also known as
- GHSA-9mm9-rqhj-j5mx
- Sources
- NVDJSONOSV GHSA-9mm9-rqhj-j5mxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.5 | 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 |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | yamadashy | repomixcpe:2.3:a:yamadashy:repomix:*:*:*:*:*:*:*:* |
< 1.14.1 | 1.14.1 |
| OSV | npm | repomix | < 1.14.1 | 1.14.1 |
References
- https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82 · Patch
- https://github.com/yamadashy/repomix/releases/tag/v1.14.1 · Release Notes
- https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx · Exploit, Vendor Advisory, Mitigation, WEB
- https://github.com/yamadashy/repomix · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 15 Jul 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 1 Jul 2026)