Skip to main content
VulnerabilityPublished Updated

CVE-2026-49987: repomix Vulnerable to Command Injection (RCE) via `--remote-branch` Argument Injection

Affects repomixSource GCVE Database

0
Compare
Authoritative record:CVE-2026-49987· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 1.14.1 soon.

Data as of 9 Nov 2026, 19:47 UTC

CVSS 4.0 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewrepomixpkg:brew/repomixOther threatsAffected
  • >=0.2.1 <1.14.1
Fixed in
  • 1.14.1

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.

References

Community reviews

Loading reviews…