Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Yamadashy | Repomix | < 1.14.1 |
Related Weaknesses (CWE)
References
- https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088Patch
- https://github.com/yamadashy/repomix/releases/tag/v1.14.1Release Notes
- https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mxExploitVendor AdvisoryMitigation
- https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mxExploitVendor AdvisoryMitigation
FAQ
What is CVE-2026-49987?
CVE-2026-49987 is a vulnerability with a CVSS score of 8.8 (HIGH). 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 checkou...
How severe is CVE-2026-49987?
CVE-2026-49987 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-49987?
Check the references section above for vendor advisories and patch information. Affected products include: Yamadashy Repomix.