Skip to main content

Repomix CVE-2026-59702

| EUVDEUVD-2026-42298 CRITICAL
Server-Side Request Forgery (SSRF) (CWE-918)
2026-07-08 VulnCheck GHSA-5wj3-m77q-j278
9.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Locate exposed Repomix /api/pack endpoint
  2. Delivery
    Send crafted repo URL (metadata/file scheme)
  3. Exploit
    Server passes URL to git clone
  4. Execution
    Fetch internal service or local file
  5. Impact
    Exfiltrate 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

repomix 0 ≤c748b52
repomix 0 <1.14.1

Affected Packages

euvd repomix fix: 1.14.1

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

Vendor (VulnCheck) PRIMARY 9.2 CRITICAL
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
vuln.today AI 9.3 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Medium
popular open-source dev tool, but exposed server mode is a niche deployment
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy