mcp-cve-project

CVE-2026-49986 | The Cortex MCP server (neuro-cortex-memory), a cross-platform persistent memory MCP, prior to version 3.17.1 treats the CLAUDE_PROJECT_DIR environ | Severity: see NVD

CVE Information

Field Value
CVE / NVD CVE-2026-49986
Date (index) 2026-08-14
Affected product (index) The Cortex MCP server (neuro-cortex-memory), a cross-platform persistent memory MCP, prior to version 3.17.1 treats the CLAUDE_PROJECT_DIR environ
GHSA ID GHSA-GVPP-V77H-5W8G
OWASP MCP Top 10 (2025) MCP04 — Software Supply Chain Attacks & Dependency Tampering
Published / disclosed 2026-08-14
Ecosystem Application / upstream project
Component The Cortex MCP server (neuro-cortex-memory), a cross-platform persistent memory MCP,
EPSS score 0.001600000 (FIRST EPSS, 2026-09-26)
CVSS score HIGH — 7.1 CVSS v4.0
CWE CWE-829
Affected versions v3.16.0, v3.15.3, v3.15.2, v3.15.1, v3.15.0, v3.14.12, v3.14.11, v3.14.10, v3.14.9, v3.14.8, v3.14.7, v3.14.6, v2.4.1, v2.3.0, v2.1.0
Fixed versions 3.17.1
Fix status Patched
Exploit status Public CVE record; do not mirror weaponized payloads
Notes Added as a separate CVE note during the 2026-08-25 missing-CVE follow-up. Re-check NVD before using this entry for compliance reporting.

CVE Breakdown


What is the vulnerability?

The Cortex MCP server (neuro-cortex-memory), a cross-platform persistent memory MCP, prior to version 3.17.1 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. Version 3.17.1 fixes the issue.

Attack prerequisites / exposure

Exposure depends on how the affected MCP server, client, gateway, plugin, extension, or adjacent AI workflow is deployed. Prioritize network-reachable MCP transports, desktop apps with MCP extensions enabled, CI or agent environments, and systems with access to browsers, repositories, credentials, cloud resources, databases, or local files.

CVE is because of what bug?

Primary mapped weakness: MCP04 — Software Supply Chain Attacks & Dependency Tampering. Confirm the exact CWE and affected code path in the NVD record and upstream advisory before adding exploit-specific detail.

MCP-specific impact / why it matters

MCP components bridge model output to privileged tools. Vulnerabilities in authorization, path validation, OAuth handling, command execution, SSRF validation, prompt/tool trust, or tool access can turn prompt/tool input into host compromise, credential disclosure, unauthorized browser/cloud/database access, or persistent malicious tool execution.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory. Do not paste weaponized payloads.

Fix / Remediation

Upgrade to the vendor-fixed version where available. If no fixed version is listed, restrict the affected component to trusted users and trusted networks, disable risky tools, validate tool arguments, and run the service with least-privilege credentials until upstream remediation is confirmed.

Upstream fix (open source)

Workarounds / mitigations

Exploit / PoC

If a public PoC exists, prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.

Detection / verification

Patch

Track NVD references for CVE-2026-49986 and apply the upstream patched release or commit recommended by the vendor/CNA.