Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. code-graph-rag
  4. ›
  5. CVE-2026-77604

CVE-2026-77604: Code Graph RAG: MCP paginated read_file path traversal / arbitrary file read

November 9, 2026

The read_file MCP tool in codebase_rag/mcp/tools.py contains a path traversal vulnerability in its paginated branch (when offset or limit is supplied). The handler constructs a file path using Path(self.project_root) / file_path without subsequently validating that the resolved path remains within the configured project root. Python’s pathlib silently discards the left-hand component when the right-hand argument is an absolute path, allowing an attacker to read any UTF-8-readable file on the server by passing an absolute path such as /etc/passwd.

References

  • github.com/advisories/GHSA-vvr2-h2jp-838m
  • github.com/vitali87/code-graph-rag/commit/6541e920a27961fa8f3ff49ef38c0e0bd09cd626
  • github.com/vitali87/code-graph-rag/releases/tag/v0.0.345
  • github.com/vitali87/code-graph-rag/security/advisories/GHSA-vvr2-h2jp-838m
  • nvd.nist.gov/vuln/detail/CVE-2026-77604

Code Behaviors & Features

Detect and mitigate CVE-2026-77604 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.0.345

Fixed versions

  • 0.0.345

Solution

Upgrade to version 0.0.345 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/code-graph-rag/CVE-2026-77604.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 11 Nov 2026 00:17:24 +0000.