CVE-2026-49987

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

HIGH
8.8
CVSS Score
Published: July 15, 2026 at 06:06 PM UTC
Updated: October 24, 2026 at 09:10 PM UTC
1 product affected across 1 vendorRepomix

Using repomix by yamadashy?

Get instant alerts when new vulnerabilities affect repomix - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.7%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.14.1
Affected range stops below 1.14.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_CONFIRMExploitVendor AdvisoryMitigation
Source: cverecord
https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/yamadashy/repomix/releases/tag/v1.14.1

SSVC — Action Prioritization

SSVCPoCNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-88

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card