Skip to main content

Code Graph Rag

2 CVEs product

Monthly

CVE-2026-87008 Nov 05, 20:13 PyPI HIGH POC PATCH GHSA This Week

Symlink-following in Code Graph RAG before 0.0.589 lets a repository the operator analyzes make the structural_search and structural_replace tools read - and with dry_run=False overwrite - files outside the configured project_root. The path-containment check in should_skip_path is lexical and never resolves the path, so a planted symbolic link whose target lies outside the root is treated as in-scope; structural_search has no approval gate at all, and the requires_approval flag on structural_replace is enforced only by the agent loop, which the MCP tool registry bypasses. The issue is local (AV:L) and requires the victim to analyze an attacker-influenced repository (UI:R), with impact bounded by what the cgr process can read or write; the advisory ships a proof-of-concept reproduction, and the flaw is not listed in CISA KEV.

Path Traversal Code Graph Rag
NVD GitHub
CVSS 3.1
7.1
EPSS
0.3%
CVE-2026-77604 Nov 05, 20:10 PyPI HIGH PATCH GHSA This Week

Unauthenticated arbitrary file read in Code Graph RAG (the code-graph-rag package) affects all versions prior to 0.0.345 by letting an attacker escape the configured project root through the MCP read_file tool. When a caller supplies an offset or limit parameter the handler takes the paginated branch, which builds Path(project_root) / file_path and opens it without the containment check that guards the non-paginated branch, so an absolute path such as /etc/passwd (or a relative ../ traversal) causes pathlib to discard the project root and returns any UTF-8-readable file the server process can access. Exploitation is unauthenticated (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, 7.5) when the server runs as 'cgr mcp-server --transport http', which binds 0.0.0.0:8080 without authentication by default; local callers over the stdio transport reach the same code path. A public proof-of-concept with Docker and HTTP reproduction artifacts is published in the upstream GitHub security advisory, but the provided intelligence contains no evidence of active exploitation in the wild, and impact is confidentiality-only (read, not write).

Path Traversal Mcp Code Graph Rag
NVD GitHub
CVSS 3.1
7.5
EPSS
0.4%
EPSS 0% CVSS 7.1
HIGH POC PATCH This Week

Symlink-following in Code Graph RAG before 0.0.589 lets a repository the operator analyzes make the structural_search and structural_replace tools read - and with dry_run=False overwrite - files outside the configured project_root. The path-containment check in should_skip_path is lexical and never resolves the path, so a planted symbolic link whose target lies outside the root is treated as in-scope; structural_search has no approval gate at all, and the requires_approval flag on structural_replace is enforced only by the agent loop, which the MCP tool registry bypasses. The issue is local (AV:L) and requires the victim to analyze an attacker-influenced repository (UI:R), with impact bounded by what the cgr process can read or write; the advisory ships a proof-of-concept reproduction, and the flaw is not listed in CISA KEV.

Path Traversal Code Graph Rag
NVD GitHub
EPSS 0% CVSS 7.5
HIGH PATCH This Week

Unauthenticated arbitrary file read in Code Graph RAG (the code-graph-rag package) affects all versions prior to 0.0.345 by letting an attacker escape the configured project root through the MCP read_file tool. When a caller supplies an offset or limit parameter the handler takes the paginated branch, which builds Path(project_root) / file_path and opens it without the containment check that guards the non-paginated branch, so an absolute path such as /etc/passwd (or a relative ../ traversal) causes pathlib to discard the project root and returns any UTF-8-readable file the server process can access. Exploitation is unauthenticated (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, 7.5) when the server runs as 'cgr mcp-server --transport http', which binds 0.0.0.0:8080 without authentication by default; local callers over the stdio transport reach the same code path. A public proof-of-concept with Docker and HTTP reproduction artifacts is published in the upstream GitHub security advisory, but the provided intelligence contains no evidence of active exploitation in the wild, and impact is confidentiality-only (read, not write).

Path Traversal Mcp Code Graph Rag
NVD GitHub

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