Skip to content

code-graph-rag

Code Graph RAG structural tools follow out-of-root symlinks

CVE-2026-87008Published 5 Nov 2026, 20:13 UTC

Real-world risk

2.7/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.1

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

Code Graph RAG is an AI-powered knowledge graph and retrieval system for querying, understanding, and editing multi-language codebases. Prior to 0.0.589, AstGrepService in codebase_rag/tools/ast_grep_service.py enumerates files beneath project_root and relies on should_skip_path in codebase_rag/utils/path_utils.py to classify them, but the containment check operates on unresolved lexical paths. A symbolic link planted inside an analyzed repository can therefore reference a file outside the configured root while still appearing in scope. The structural_search tool follows the link and discloses readable content without an approval gate, while structural_replace with dry_run=False follows it and overwrites writable content; the MCP path invokes structural replacement without the agent-loop approval control. An attacker who causes a victim to analyze a repository containing such a link can read credentials, keys, environment files, or sibling source and can modify files accessible to the code-graph-rag process. This issue is fixed in version 0.0.589.

Am I affected?

ProductAffected versions (from the sources)Fixed in
code-graph-ragNiche< 0.0.5890.0.589

What to do

Update to a fixed version: 0.0.589.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionLocalMust already run code or have a shell on the machineFrom the CVSS vector0.50
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T3: Public proof of concept (× 0.95)

A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit

  • Reference tagged as exploit (link)
  • CISA SSVC: proof of concept

EPSS 0.3% chance of exploitation in 30 days (percentile 19), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.350
  2. Threat T3: Public proof of concept0.950
  3. 10 × impact 0.8 × prerequisites 0.35 × threat 0.952.660
  4. Rounded to one decimal between 0.1 and 102.7

How the score works

Exploitation and evidence timeline

  1. 5 Nov 2026 Published
  2. 3 Dec 2026 Reference tagged as exploit first seen
  3. 3 Dec 2026 CISA SSVC: proof of concept first seen
  4. 3 Dec 2026 Risk 2.7 (cvss fallback)

Weakness

CWE-22, CWE-59

References

Get alerts for code-graph-rag

Free email or text alerts when a vulnerability in code-graph-rag reaches risk 8 or higher. Nothing else.