Skip to content
HighVulnerability

CVE-2026-49986: Cortex MCP server code execution via malicious project directory

Identifier
CVE-2026-49986
Published
Record updated
View JSON
Affected
  • neuro-cortex-memory <= 3.17.0
Fixed in
3.18.0
  • released June 2, 2026, 73 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

The Cortex MCP server (`neuro-cortex-memory`) before version 3.17.1 treats the `CLAUDE_PROJECT_DIR` environment variable, which Claude Code sets to the open project directory, as a trusted Cortex developer checkout. When `open_visualization` runs, `_find_dev_source()` accepts that directory as a source root if `_is_cortex_root()` finds an `mcp_server/` subdirectory and a `ui/unified-viz.html` file. An attacker who places those two marker files in a malicious repository can make Cortex run `mcp_server/server/visualize_bootstrap.py` from it via `subprocess.run`, executing code with the victim's local user privileges.

Mitigation

Fixed in 3.17.1.