CVE-2026-49987: repomix Vulnerable to Command Injection (RCE) via `--remote-branch` Argument Injection
Affects repomixSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 1.14.1 soon.
Data as of 9 Nov 2026, 19:47 UTC
- Patch
- Available – fixed in 1.14.1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 15 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.
What to do
Upgrade repomix to 1.14.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewrepomixpkg:brew/repomixOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in repomix version 1.14.1 that fixes this vulnerability by adding the `--` positional delimiter to git subprocess calls and applying the existing dangerous parameter blocklist to the `remoteBranch` argument. Users should upgrade to version 1.14.1 or later. Until upgraded, avoid passing untrusted input to the `--remote-branch` option. No other mitigations are indicated by the vendor advisory.
Description
repomix versions from 0.2.1 up to but not including 1.14.1 contain a command injection vulnerability via the `--remote-branch` CLI argument. This argument is passed unsanitized to git subprocesses, allowing injection of arbitrary git options such as `--upload-pack` that can execute attacker-controlled scripts with the user's privileges. The vulnerability bypasses existing URL validation controls because the branch parameter is not validated. A fix is available in version 1.14.1 that adds proper argument delimiters and validation.