CVE-2026-49987
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…
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.54%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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 4.0
- 7.5 HIGHCVSS: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/M
- EPSS
- 0.54% probability · 44th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-88
- Affected
- yamadashy/repomix
- Source
- security-advisories@github.com
References
- https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82Patch
- https://github.com/yamadashy/repomix/releases/tag/v1.14.1Release Notes
- https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mxExploit, Vendor Advisory, Mitigation
- https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mxExploit, Vendor Advisory, Mitigation
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.