ai_security▌

← feed

NOTABLE

code-graph-rag MCP structural tools follow out-of-root symlinks (CVE-2026-87008)

A symbolic link planted in a repository analyzed by code-graph-rag makes its structural_search and structural_replace tools - exposed as MCP and agentic AI tools - read, and with dry_run=False overwrite, arbitrary files outside the configured project root, because the containment check is lexical and never calls is_symlink() or resolve(), unlike the project's own validate_project_path decorator used elsewhere. The advisory lists no patched version and notes the tested commit already carried the fix for the repo's earlier path-traversal advisory, CVE-2026-77604, ingested here on Nov 8.

released 2026-11-09 · ingested 2026-11-10T00:40Z

Sources

Primary source

Cite this

APA

AI Security Index. (2026). code-graph-rag MCP structural tools follow out-of-root symlinks (CVE-2026-87008). AI Security Index. https://github.com/advisories/GHSA-85gg-2gfq-q95m

BibTeX

@misc{aisec-2026-11-09-code-graph-rag-symlink-containment-mcp,
  title  = {code-graph-rag MCP structural tools follow out-of-root symlinks (CVE-2026-87008)},
  year   = {2026},
  howpublished = {\url{https://github.com/advisories/GHSA-85gg-2gfq-q95m}},
  note   = {AI Security Index item 2026-11-09-code-graph-rag-symlink-containment-mcp}
}