{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.14.1"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "a7b93adfcdb11be923a9a092cceb1cb6739ef8e1"
            }
          ],
          "repo": "https://github.com/yamadashy/repomix",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-9mm9-rqhj-j5mx"
  ],
  "database_specific": {
    "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"
  },
  "details": "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.",
  "id": "CVE-2026-49987",
  "modified": "2026-08-04T11:30:49.660152463Z",
  "published": "2026-07-15T18:06:27.018Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/yamadashy/repomix/releases/tag/v1.14.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49987.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/yamadashy/repomix/security/advisories/GHSA-9mm9-rqhj-j5mx"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-49987"
    },
    {
      "type": "FIX",
      "url": "https://github.com/yamadashy/repomix/commit/92bfa3193b5233a0d21beff929444153c088de82"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Repomix: Command Injection (RCE) via `--remote-branch` Argument Injection"
}