# CVE-2026-49987: Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection

- Severity: High 7.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-01T19:00:50.000Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-9mm9-rqhj-j5mx
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- yamadashy repomix: < 1.14.1; before 1.14.1
- repomix (npm): before 1.14.1

## Every score

- GitHub_M: CVSS:4.0 7.5 High `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`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx> (exploit, mitigation, vendor-advisory, web)
- <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> (package)

## Sources

- CVE List: [CVE-2026-49987](https://www.cve.org/CVERecord?id=CVE-2026-49987), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-9mm9-rqhj-j5mx](https://github.com/advisories/GHSA-9mm9-rqhj-j5mx), CC-BY-4.0, modified 2026-07-01
- NVD: [CVE-2026-49987](https://nvd.nist.gov/vuln/detail/CVE-2026-49987), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-49987 · Whole record: https://cve.day/CVE-2026-49987.json · Rebuilt by cve.day 2026-11-25T22:59:28.329Z
