repomix Vulnerable to Command Injection (RCE) via `--remote-branch` Argument Injection
CVE-2026-49987 · GHSA-9mm9-rqhj-j5mx · published 2026-07-01
- Severity
- High
- CVSS score
- 8.8
- Chance of exploitation (EPSS)
- 0.54%
- Fixed in
- 1.14.1
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
Remote Code Execution: Complete system compromise with the privileges of the user executing repomix. CI/CD Compromise: If repomix is utilized in automated pipelines where --remote-branch is populated by external triggers (e.g., webhook payloads, PR titles), attackers can compromise build servers and exfiltrate secrets.
Upgrade repomix to 1.14.1 or later.
1. Implement Positional Delimiters (Primary Fix) Append the -- delimiter to explicitly separate options from positional arguments in all git subprocess calls utilizing remoteBranch. 2. Apply Existing Blocklist to Branch Parameter (Defense in Depth) Update execGitShallowClone to validate remoteBranch against the existing dangerousParams array.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| repomix | npm | < 1.14.1 | 1.14.1 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- Criticalmcp-server-git runs a repo's gpg.program via git_merge and git_branchmcp-server-git
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.