{"id":"CVE-2026-49987","aliases":["GHSA-9mm9-rqhj-j5mx"],"url":"https://o3.security/vulnerability/CVE-2026-49987","summary":"Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection","details":"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":"2026-07-15T18:06:27.018Z","modified":"2026-08-20T03:54:24.237665747Z","cvss":null,"epss":{"score":0.00539,"percentile":0.43219,"asOf":"2026-08-30"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"repomix","fixedVersion":"1.14.1"}],"fix":{"url":"https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82","label":"yamadashy/repomix@92bfa31"},"references":[{"type":"WEB","url":"https://github.com/yamadashy/repomix/releases/tag/v1.14.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49987.json"},{"type":"ADVISORY","url":"https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49987"},{"type":"FIX","url":"https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-20T03:54:24.237665747Z"}}