CVE-2026-87008: Code Graph RAG structural tools follow out-of-root symlinks
Affects code-graph-ragSource GCVE Database
Not known to be exploited · CVSS 7.1 High : upgrade to 0.0.587 soon.
Data as of 9 Nov 2026, 23:24 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.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:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| PyPIcode-graph-rag | Affected
| Fixed in
|
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
- github.com/vitali87/code-graph-rag/security/advisories/GHSA-85gg-2gfq-q95m (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-87008 (opens in a new tab)
- github.com/vitali87/code-graph-rag/commit/2648c95aa550ce2d9361a8e75ed669d5f4b451b8 (opens in a new tab)
- github.com/vitali87/code-graph-rag (opens in a new tab)
- github.com/vitali87/code-graph-rag/releases/tag/v0.0.589 (opens in a new tab)