{"id":"CVE-2026-49987","published":"2026-07-15T18:06:27Z","modified":"2026-07-15T19:40:40Z","title":"Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection","vendor":"yamadashy","product":"repomix","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00698,"percentile":0.53996,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82","tags":["x_refsource_MISC"]},{"url":"https://github.com/yamadashy/repomix/releases/tag/v1.14.1","tags":["x_refsource_MISC"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":10.8},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"yamadashy","affectedVersions":[{"vendor":"yamadashy","product":"repomix","versions":["< 1.14.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-15T19:40:25.260913Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"repomix","vulnerableRanges":["<1.14.1"],"patched":["1.14.1"],"from":["GHSA-9mm9-rqhj-j5mx"],"provenance":"source"}],"summary":{"text":"Repomix, the tool that packs repositories into AI-friendly files, is affected in versions before 1.14.1 through its Git clone handling in src/core/git/gitCommand.ts, where the --remote-branch value is passed unvalidated to git fetch and git checkout, allowing Git option injection such as --upload-pack. An attacker who can supply a crafted --remote-branch value, which requires user interaction to trigger, can bypass the URL validation checks and execute commands through local or SSH-style Git transports.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:24:26Z"},"euvd":{"id":"EUVD-2026-44758","exploited":false,"provenance":"source"}}