Skip to main content
VulnerabilityPublished

CVE-2026-87008: Code Graph RAG structural tools follow out-of-root symlinks

Affects code-graph-ragSource GCVE Database

0
Compare
Authoritative record:CVE-2026-87008· High 7.1

Not known to be exploited · CVSS 7.1 High : upgrade to 0.0.587 soon.

Data as of 9 Nov 2026, 23:24 UTC

CVSS 3.1 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.1
EPSS
0.2% chance of exploitation in 30 days – higher than 18% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.0.587
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.

What to do

Upgrade code-graph-rag to 0.0.587.

Affected software

ProductAffectedFixed in
PyPIcode-graph-ragAffected
  • <0.0.587
Fixed in
  • 0.0.587

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in code-graph-rag version 0.0.587. Users should upgrade to this version or later to remediate the vulnerability. The fix involves properly resolving symbolic links before performing path containment checks to prevent out-of-root file access. Until upgraded, avoid running structural_replace with dry_run=False on untrusted repositories or inputs that may contain symlinks. Note that the structural_replace tool's approval mechanism can be bypassed via the MCP server path, so restricting access to MCP clients is also recommended.

Description

The code-graph-rag tool's structural_search and structural_replace features have a vulnerability where symbolic links in a source-code repository can cause these tools to read or overwrite files outside the intended project root. This occurs because the path containment checks are performed lexically without resolving symlinks, allowing traversal outside the root directory. The issue affects versions prior to 0.0.587 and has been fixed in version 0.0.587. The vulnerability has a CVSS score of 7.1, indicating high severity, and can lead to unauthorized disclosure and modification of files.

References

Community reviews

Loading reviews…