CVE-2026-59702 repomix - Server-Side Request Forgery via Unvalidated Repository URLs in POST /api/pack
Unauthenticated attackers can exploit repomix to perform Server-Side Request Forgery, accessing private networks and local files via unvalidated URLs.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-59702?
CVE-2026-59702 is a critical server-side request forgery vulnerability in repomix, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-918
Which versions are affected by CVE-2026-59702?
How do I fix CVE-2026-59702?
No fix has been published for CVE-2026-59702 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2026-59702 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59702 exists.
Sources
Also known as GHSA-5wj3-m77q-j278.