Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocate exposed Repomix /api/pack endpoint
-
DeliverySend crafted repo URL (metadata/file scheme)
-
ExploitServer passes URL to git clone
-
ExecutionFetch internal service or local file
-
ImpactExfiltrate cloud credentials or file contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target run Repomix in its server/web mode with the POST /api/pack endpoint network-reachable by the attacker; per CVSS PR:N/UI:N/AC:L/AT:N no authentication, no user interaction, and no special preconditions are needed against such a deployment. The concrete trigger is supplying a repository URL using the http://, https://, or file:// scheme that the endpoint forwards to git clone without validation. Exploitation is LIMITED by the fact that the default and most common Repomix usage is as a local CLI (not exposed), so only instances explicitly running the web server are at risk; the value of the SSRF is further shaped by environment - cloud-hosted instances with reachable metadata services or sensitive internal HTTP endpoints yield the highest impact, while an isolated instance with strict egress filtering is far less exposed. |
| Impact | The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N, score 9.2) describes a network-reachable, low-complexity, fully unauthenticated flaw with high confidentiality impact on both the vulnerable system and a subsequent system (SC:H) - consistent with SSRF that pivots to internal services and metadata. That signal is strong and internally coherent. However, key exploitation-likelihood signals are missing: no EPSS score, KEV listing, or public PoC is present in the provided data, so this is not confirmed as actively exploited and should be treated as a high-impact but not-yet-weaponized issue. The real-world risk is gated by exposure: it is only dangerous where Repomix's server mode is deployed and network-reachable - most Repomix usage is as a local CLI, which is unaffected. Prioritize highly for any internet- or intranet-exposed Repomix server instance, especially in cloud environments where metadata credential theft is possible; deprioritize for CLI-only usage. |
| Exploit ScenarioDerived | An attacker who can reach a hosted Repomix instance sends an unauthenticated POST /api/pack request with a repository URL of http://169.254.169.254/computeMetadata/v1/ (GCP metadata) or file:///etc/passwd. Repomix passes the URL to git clone, the server fetches the internal resource, and the attacker recovers cloud credentials or local file contents from the response. No public exploit is identified at time of analysis, but the low attack complexity and lack of authentication make weaponization straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 08, 2026
Server-side request forgery in Repomix's hosted API (POST /api/pack) lets unauthenticated remote attackers coerce the server into making arbitrary outbound requests. Because the endpoint passes user-supplied URLs to git clone without validating the http://, https://, or file:// schemes, an attacker can reach internal-only network addresses, cloud metadata endpoints (e.g. GCP), and read local filesystem paths. VulnCheck reported the flaw and a vendor fix exists; no public exploit is identified at time of analysis.
RemediationAI
Patch available per vendor advisory - an upstream fix commit exists (https://github.com/CrazyForks/repomix/commit/c748b524f41225e7fc6f89ad0084520901a453cf); a released patched version is not independently confirmed from the provided data, so upgrade to the latest Repomix release that incorporates this commit and verify the fix is present. If you cannot upgrade immediately, do not expose the Repomix web server to untrusted networks: restrict access to the POST /api/pack endpoint via network ACLs or authentication, and prefer running Repomix only as a local CLI (server mode is what carries the exposure). As compensating controls, block the server's egress to link-local and cloud metadata ranges (169.254.169.254/32 and 169.254.0.0/16) and to RFC1918 private ranges at the host or cloud firewall, and enforce IMDSv2 / disable the legacy metadata endpoint in GCP/AWS to blunt credential theft; note these egress restrictions may break legitimate clones of internally hosted repositories. Also disallow the file:// scheme for any repository input. Track and reference the upstream issue https://github.com/yamadashy/repomix/issues/1703 for the authoritative fixed release.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Repomix is an open-source tool that packages a repository into a single AI-friendly file; its optional web/server mode exposes a POST /api/pack endpoint that accepts a repository URL and shells out to git clone to fetch it. The root cause is CWE-918 (Server-Side Request Forgery): the endpoint trusts the user-controlled URL and does not enforce an allowlist of schemes or block private/link-local address ranges before invoking git clone. Because git's transport layer honors http://, https://, and file:// URLs, the same unvalidated input becomes both an SSRF primitive (arbitrary outbound HTTP to internal services and the cloud metadata service at 169.254.169.254) and a local file disclosure primitive via file:// paths. The affected package is identified by CPE cpe:2.3:a:repomix:repomix:*:*:*:*:*:*:*:*, covering all versions prior to the fix.
Know when Repomix gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Unauthenticated network endpoint (PR:N/UI:N/AC:L); SSRF crosses a trust boundary to internal/metadata systems (S:C) with high confidentiality (C:H) and only minor integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
Repomix's hosted API contains a critical server-side request forgery vulnerability (CVE-2026-59702, CVSS 9.2) allowing unauthenticated attackers to access internal networks, cloud metadata endpoints, and read local files; no public exploit identified at time of analysis. Organizations using Repomix are at immediate risk of credential theft and data exposure. Urgent patching is required as the flaw remains trivially exploitable.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
EUVD-2026-42298
GHSA-5wj3-m77q-j278
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB