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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-88"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49987.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:yamadashy:repomix:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.14.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "92bfa3193b5233a0d21beff929444153c088de82"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v1.14.1",
"range": [
{
"fixed": "a7b93adfcdb11be923a9a092cceb1cb6739ef8e1"
}
],
"source": "REFERENCES_TAG"
}
]
}