CVE Catalog

CVE-2026-49987

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.50%

40th percentile - higher than 40% of all known CVEs

Summary

Repomix prior to version 1.14.1 contains a vulnerability in the execGitShallowClone function where the --remote-branch parameter is passed directly to git fetch and git checkout without validation or --end-of-options. This allows injection of Git options like --upload-pack, bypassing validateGitUrl() checks and enabling command execution via local or SSH transports.

Risk Assessment

An attacker can exploit this vulnerability to achieve remote code execution on the server, potentially leading to system compromise, data theft, or further attacks on the infrastructure.

Recommendation

Immediately upgrade Repomix to version 1.14.1 or later, which includes a fix that prevents Git option injection.

Other vulnerabilities in Repomix

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS