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.
Published: 2026-07-08
Score: 9.2 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

repomix’s POST /api/pack endpoint accepts a repository URL that is passed directly to git clone without validation. The flaw, characterized as CWE‑918, allows an unauthenticated user to supply http://, https://, or file:// URLs that the server then fetches, making it possible to reach private network addresses, cloud‑platform metadata services, or local filesystem paths. This disclosure can leak sensitive data and facilitate further compromise through the server acting as a proxy for the attacker.

Affected Systems

The vulnerable component is the repomix application (repomix:repomix). All installations that have not incorporated the commit c748b524f41225e7fc6f89ad0084520901a453cf, which introduces URL validation, remain susceptible to exploitation.

Risk and Exploitability

The CVSS score of 9.2 marks this flaw as critical, while the EPSS score of <1% indicates a low probability of exploitation at present. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires only sending an HTTP request to the publicly exposed endpoint; no authentication is necessary. The likely attack vector is a simple HTTP POST to /api/pack with a crafted repository URL, enabling the attacker to query internal services, GCP metadata, or local files and potentially expose secrets or enable further attacks.

Generated by OpenCVE AI on July 29, 2026 at 14:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the repomix patch that validates repository URLs (commit c748b524f41225e7fc6f89ad0084520901a453cf) or upgrade to a release that includes this fix.
  • If a patch is unavailable, restrict the repomix process’s outbound traffic to only the IP addresses or domains required for normal operation, for example by using firewall or network ACL rules.
  • Disable or block the POST /api/pack endpoint until a URL‑validation mechanism is in place.

Generated by OpenCVE AI on July 29, 2026 at 14:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 10 Jul 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Repomix
Repomix repomix
Vendors & Products Repomix
Repomix repomix

Wed, 08 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 08 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
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.
Title repomix - Server-Side Request Forgery via Unvalidated Repository URLs in POST /api/pack
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 9.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N'}

cvssV4_0

{'score': 9.2, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-20T17:45:57.219Z

Reserved: 2026-07-06T15:31:46.187Z

Link: CVE-2026-59702

cve-icon Vulnrichment

Updated: 2026-07-08T16:18:34.925Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T14:15:03Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)