{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-87008","id":"CVE-2026-87008","title":"Code Graph RAG file exposure via symlinks in repository analysis","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 ","descriptionLong":"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.","published":"2026-11-05T20:13:23.276Z","updated":"2026-11-14T02:30:53.251541485Z","reserved":"2026-09-08T16:44:23.782Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["vitali87 code-graph-rag"],"affectedProducts":[{"vendor":"vitali87","product":"code-graph-rag","defaultStatus":null,"versions":[{"version":"< 0.0.589","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"code-graph-rag","purl":"pkg:pypi/code-graph-rag","ranges":["<0.0.587"],"fixed":["0.0.587"],"advisory":"GHSA-85gg-2gfq-q95m"}],"cwes":["CWE-22","CWE-59"],"aliases":["GHSA-85gg-2gfq-q95m"],"references":[{"url":"https://github.com/vitali87/code-graph-rag/security/advisories/GHSA-85gg-2gfq-q95m","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/vitali87/code-graph-rag/commit/2648c95aa550ce2d9361a8e75ed669d5f4b451b8","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/vitali87/code-graph-rag/releases/tag/v0.0.589","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87008.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87008","tags":["advisory"]},{"url":"https://github.com/vitali87/code-graph-rag","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00264,"epssPercentile":0.18507,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-87008","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87008","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-87008","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-85gg-2gfq-q95m","ok":true,"note":"GHSA-85gg-2gfq-q95m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-87008","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":"Public exploit referenced within two weeks of publication"}