{"id":"CVE-2026-49987","revision":"ff0aeb7f04ce482abe5b70d3b07960e9","records":[{"revision":"ff0aeb7f04ce482abe5b70d3b07960e9","observedAt":"2026-10-25T12:17:38.331+00:00","statement":{"source":"nvd","id":"CVE-2026-49987","aliases":[],"title":"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…","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.","state":0,"publishedAt":"2026-07-15T19:17:25.483+00:00","modifiedAt":"2026-10-24T21:10:00.13+00:00","affected":[],"metrics":[{"system":"CVSS 4.0 · security-advisories@github.com · Secondary","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","score":7.5,"severity":"HIGH"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"references":["https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82","https://github.com/yamadashy/repomix/releases/tag/v1.14.1","https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-49987","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-88"],"productCriteria":["cpe:2.3:a:yamadashy:repomix:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2026-07-15T19:17:25.483","lastModified":"2026-10-24T21:10:00.130"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-49987","identifiers":["CVE-2026-49987"]},"retained":false,"historicalAffected":[]}],"coverage":[]}