{"id":"CVE-2026-49987","revision":"2acf6900a96d4124941fb1e93e438fae","records":[{"revision":"2acf6900a96d4124941fb1e93e438fae","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-49987","aliases":[],"title":"Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection","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.","state":0,"publishedAt":"2026-07-15T18:06:27.018+00:00","modifiedAt":"2026-07-15T19:40:40.723+00:00","affected":[{"ecosystem":"Vendor product","name":"repomix","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"yamadashy\",\n                    \"product\": \"repomix\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 1.14.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":7.5,"severity":"HIGH"}],"references":["https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx","https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82","https://github.com/yamadashy/repomix/releases/tag/v1.14.1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-49987","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-49987","identifiers":["CVE-2026-49987"]},"retained":false,"historicalAffected":[]}],"coverage":[]}