---
id: CVE-2026-59702
title: >-
  repomix - Server-Side Request Forgery via Unvalidated Repository URLs in POST
  /api/pack
summary: >-
  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://…
severity: critical
cvss: 9.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-918
vendor: repomix
product: repomix
affected:
  - repomix < 1.14.1
  - repomix <= c748b52
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-07-08T16:18:46.452885Z'
exploitAvailable: true
published: '2026-07-08'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T14:17:57.510Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-59702'
references:
  - url: 'https://github.com/yamadashy/repomix/issues/1703'
    label: GitHub Issue
  - url: 'https://github.com/yamadashy/repomix'
    label: Product
  - url: >-
      https://github.com/CrazyForks/repomix/commit/c748b524f41225e7fc6f89ad0084520901a453cf
    label: Patch Commit
  - url: >-
      https://www.vulncheck.com/advisories/repomix-server-side-request-forgery-via-unvalidated-repository-urls-in-post-api-pack
tags:
  - cve.org
  - exploit-available
epss: 0.00442
epssPercentile: 0.37844
ingestedAt: '2026-09-24T15:45:56.726Z'
---

## Overview

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.

## Affected

- `repomix < 1.14.1`
- `repomix <= c748b52`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
