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

Impact

repomix contains a local file inclusion flaw that allows unauthenticated attackers to send URLs with the file:// scheme to the git clone endpoint. The isValidRemoteValue function does not block such URLs, and the value is passed unchanged to the git clone command. The result is that any file tracked by the git repository can be read by the attacker, exposing source code, configuration files, or secrets. This is a classic example of CWE‑552, where an application reads files from the file system based on user input.

Affected Systems

The affected product is repomix:repomix. No specific version information is listed in the CNA data, so any deployment of repomix that has not applied recent security updates is potentially vulnerable. Users should verify the installed package or source repository to confirm susceptibility.

Risk and Exploitability

The CVSS score of 8.7 places this vulnerability in the high severity range. The EPSS score of < 1% indicates a very low, but not zero, probability of exploitation. The flaw is not listed in the CISA KEV catalog. The likely attack vector involves sending unauthenticated HTTP requests to the git clone endpoint containing a file:// URL. The vulnerability allows reading any file under the Git process’s environment; however, the attacker must have network access to the server hosting repomix and the ability to submit requests to the exposed endpoint.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update repomix to the latest release that sanitizes or rejects file:// URLs in the git clone endpoint.
  • Restrict access to the git clone endpoint to authenticated users only or disable the endpoint if it is not required for production use.
  • If an immediate patch is unavailable, block or filter requests containing the file:// scheme at the network or reverse‑proxy level to prevent the exploit.

Generated by OpenCVE AI on July 29, 2026 at 14:05 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:00:00 +0000

Type Values Removed Values Added
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.
Title repomix - Local File Inclusion via file:// URL Scheme in Git Clone Endpoint
Weaknesses CWE-552
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

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

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

Link: CVE-2026-59703

cve-icon Vulnrichment

Updated: 2026-07-08T16:52:01.245Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-552

    Files or Directories Accessible to External Parties