Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
vitali87 code-graph-rag
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Code Graph RAG 是一个由人工智能驱动的知识图谱与检索系统,用于查询、理解和编辑多语言代码库。在 0.0.589 版本之前, 中的 会枚举 下的文件,并依赖 中的 函数对其进行分类。然而,该包含性检查是基于未解析的 lexical 路径(字面路径)执行的。因此,若在被分析的项目仓库中植入一个符号链接(symbolic link),该链接可指向配置根目录之外的文件,同时仍被视为在扫描范围内。 工具会跟随该符号链接,并在未经过任何审批流程的情况下泄露可读内容;而 工具在 模式下也会跟随该链接,直接覆盖可写内

CVSS 7.1 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-87008

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Code Graph RAG structural tools follow out-of-root symlinks
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
vitali87 code-graph-rag < 0.0.589 -

II. Public POCs for CVE-2026-87008

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-87008

请登录查看更多情报信息。

Other References for CVE-2026-87008 (3)

IV. Related Vulnerabilities