{"cve":"CVE-2026-49987","nvd":{"published":"2026-07-15T19:17:25.483","modified":"2026-10-24T21:10:00.130","status":"Analyzed","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.","cvss_v4":{"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","score":7.5},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-88"],"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","https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx"],"products":["yamadashy:repomix"],"source":"nvd","synced_at":"2026-10-25T17:50:08.599881581+00:00"},"epss":{"cve":"CVE-2026-49987","score":0.00698,"percentile":0.5281,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-9mm9-rqhj-j5mx","url":"https://osv.dev/vulnerability/GHSA-9mm9-rqhj-j5mx","summary":"repomix Vulnerable to Command Injection (RCE) via `--remote-branch` Argument Injection","modified":"2026-07-01T19:26:31.109922Z","packages":[{"ecosystem":"npm","name":"repomix","purl":"pkg:npm/repomix","ranges":["<1.14.1"],"fixed":["1.14.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}