{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c748b524f41225e7fc6f89ad0084520901a453cf"
            }
          ],
          "repo": "https://github.com/crazyforks/repomix",
          "type": "GIT"
        },
        {
          "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"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-918"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59702.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "last_affected": "c748b52"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "repomix contains a server-side request forgery vulnerability in the POST /api/pack endpoint that allows unauthenticated attackers to make arbitrary outbound requests. The endpoint fails to properly validate http://, https://, and file:// URLs before passing them to git clone, enabling attackers to access private network addresses, GCP metadata services, or local filesystem paths.",
  "id": "CVE-2026-59702",
  "modified": "2026-08-15T04:07:24.152148933Z",
  "published": "2026-07-08T15:07:19.285Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59702.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59702"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/repomix-server-side-request-forgery-via-unvalidated-repository-urls-in-post-api-pack"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/yamadashy/repomix/issues/1703"
    },
    {
      "type": "FIX",
      "url": "https://github.com/CrazyForks/repomix/commit/c748b524f41225e7fc6f89ad0084520901a453cf"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/yamadashy/repomix"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "repomix - Server-Side Request Forgery via Unvalidated Repository URLs in POST /api/pack"
}