Skip to content

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

HighCVSS 7.5 EPSS 0.70%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
npm repomix(npm) < 1.14.1 1.14.1 Fixed
yamadashy repomix < 1.14.1; = < 1.14.1 1.14.1 Fixed

Affected products

ProductAffected versionsFixed in
yamadashy repomix = < 1.14.1 No fix listed
npm repomix(npm) < 1.14.1 1.14.1
yamadashy repomix < 1.14.1 1.14.1

References