Skip to content
OpenAdvisories
High · 7.5 CVE-2026-49987 EUVD-2026-44758GHSA-9mm9-rqhj-j5mx

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

Published Jul 15, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
yamadashy repomix < 1.14.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm repomix < 1.14.1 1.14.1 GHSA-9mm9-rqhj-j5mx

References