Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. neuro-cortex-memory
  4. ›
  5. CVE-2026-49986

CVE-2026-49986: Cortex has Untrusted Project Bootstrap Code Execution via `CLAUDE_PROJECT_DIR`

July 1, 2026

The Cortex MCP server (neuro-cortex-memory) treats the CLAUDE_PROJECT_DIR environment variable — automatically set by Claude Code to the currently open project directory — as a trusted Cortex developer checkout. When the open_visualization tool is invoked, _find_dev_source() resolves the user’s active project directory as a candidate Cortex source root. The only validation performed by _is_cortex_root() is a check for the presence of an mcp_server/ subdirectory and a ui/unified-viz.html file. An attacker who places these two marker files in a malicious repository can cause Cortex to execute an arbitrary mcp_server/server/visualize_bootstrap.py from that directory via subprocess.run([sys.executable, ...]), achieving code execution with the privileges of the victim’s local user process. CVSS v3.1 Base Score: 7.8 (High).

References

  • github.com/advisories/GHSA-gvpp-v77h-5w8g
  • github.com/cdeust/Cortex/releases/tag/v3.17.1
  • github.com/cdeust/Cortex/security/advisories/GHSA-gvpp-v77h-5w8g
  • nvd.nist.gov/vuln/detail/CVE-2026-49986

Code Behaviors & Features

Detect and mitigate CVE-2026-49986 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.18.0

Fixed versions

  • 3.18.0

Solution

Upgrade to version 3.18.0 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-829: Inclusion of Functionality from Untrusted Control Sphere

Source file

pypi/neuro-cortex-memory/CVE-2026-49986.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:20 +0000.