CVE-2026-59703 repomix - Local File Inclusion via file:// URL Scheme in Git Clone Endpoint
Unauthenticated attackers can read arbitrary local git repositories by exploiting a file:// URL validation bypass in the repomix git clone endpoint.
- 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-59703?
CVE-2026-59703 is a high-severity path traversal 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 local file inclusion vulnerability in the git clone endpoint that allows unauthenticated attackers to read arbitrary local git repositories. The isValidRemoteValue function in src/core/git/gitRemoteParse.ts fails to block file:// URLs, permitting attackers to supply file:// scheme URLs that bypass validation and are passed directly to git clone, enabling unauthorized access to all tracked file contents on the server filesystem.
Weakness: CWE-552
Which versions are affected by CVE-2026-59703?
How do I fix CVE-2026-59703?
No fix has been published for CVE-2026-59703 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-59703 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59703 exists.
Sources
Also known as GHSA-8wvr-gq96-hf34.