HighVulnerability
CVE-2026-49987: Repomix git option injection through --remote-branch value in shallow clone
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-49987
- Published
- Record updated
- Affected
- repomix < 1.14.1
- Fixed in
- 1.14.1
- released May 26, 2026, 50 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.5%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
Repomix, a tool that packs repositories into AI-friendly files, is affected prior to version 1.14.1. The execGitShallowClone function in src/core/git/gitCommand.ts passes the --remote-branch value directly to git fetch and git checkout without validation or --end-of-options, allowing Git option injection such as --upload-pack. This bypasses the dangerous parameter checks in validateGitUrl() and can execute commands through local or SSH-style transports.
Mitigation
This issue is fixed in version 1.14.1.
Related items
- MediumFake MCP Servers on GitHub Target Claude and Cursor Users with Crypto-Stealing MalwareSimilar attack, The Hacker News
- HighCVE-2026-128877: IBM Langflow OSS 1.0.0 through 1.13.0 agentic MCP endpoint uses an internal client to send requests to the server's own…Similar attack, NVD/CVE Database
- MediumCVE-2026-120038: IBM Langflow OSS credential exposure via attacker-controlled OpenAI base_urlSimilar attack, NVD/CVE Database
- MediumCVE-2026-136957: Sonatype Nexus Repository 3 HuggingFace proxy download token verification flawSimilar attack, NVD/CVE Database
- HighCVE-2026-142134 - Uncontrolled search path element in the workflow linting tools in AWS HealthOmics MCP ServerSimilar attack, AWS Security Bulletins