Security advisory2026-12-01codebase-memory-mcp projectSecurity advisory

codebase-memory-mcp: UI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processes

The optional graph UI exposed a POST /api/process-kill route to stop indexing jobs it had spawned. On POSIX the handler verified that the target PID belonged to one of its own jobs;

What happened

  • codebase-memory-mcp: UI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processesSecurity Advisory GHSA-r2qv-x3rg-p49m
  • The optional graph UI exposed a POST /api/process-kill route to stop indexing jobs it had spawned. On POSIX the handler verified that the target PID belonged to one of its own jobs; on Windows that check was compiled out, so any PID could be passed to TerminateProcess.Advisory description (GHSA-r2qv-x3rg-p49m)

The failure pattern

Watch the pattern: AI action exceeds its intended scope

Related standards

CollectSEA's mapping through this incident's failure pattern; not an official determination by the standards bodies.

Building something similar?

Describe your design and see every precedent that applies, with safeguards you can hand to your coding agent.

Analyze your design
Security advisory2026-12-01AI agent

Security issue reported in mcp-use

A vulnerability was determined in mcp-use up to 1.7.1. Affected by this vulnerability is the function build_namespace of the file libraries/python/mcp_use/client/code_executor.py of the component CodeExecutor.

AI action exceeds its intended scopenvd.nist.gov