CVE-2026-49987

Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection

Published Jul 15, 2026 CVSS 4.0 · 7.5 High EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-9mm9-rqhj-j5mx repomix Vulnerable to Command Injection (RCE) via `--remote-branch` Argument Injection
History
Type Values Removed Values Added
CPEs cpe:2.3:a:yamadashy:repomix:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Yamadashy
Yamadashy repomix
Vendors & Products Yamadashy
Yamadashy repomix
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection
Weaknesses CWE-88
References
Metrics cvssV4_0

{'score': 7.5, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 7:40 PM
Reserved
Jun 2, 2026, 6:30 PM
Status
Analyzed
Published
Jul 15, 2026, 7:17 PM
Modified
Oct 24, 2026, 9:10 PM