codebase-memory-mcp: UI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processesGHSA-r2qv-x3rg-p49m
MEDIUMFix: DeusData/codebase-memory-mcp#1139GHSA-r2qv-x3rg-p49m is a medium-severity (CVSS 5.5) CWE-862 vulnerability in codebase-memory-mcp. A fix is available for codebase-memory-mcp — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-r2qv-x3rg-p49m.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
codebase-memory-mcp🐍codebase-memory-mcpReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm, PyPI packages — download data is not available via public APIs for these ecosystems.
Description
Summary
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.
Impact
On Windows with the optional UI enabled, a requester able to reach this endpoint could terminate a process that the server's user was permitted to terminate. This advisory covers the missing ownership check on the target PID.
Patches
The vulnerable route was removed. The first fixed native and npm release is 0.9.1-rc.1; the first verified fixed stable PyPI release is 0.10.0. The Host-header changes in 0.9.0 did not repair the missing Windows PID ownership check. codebase-memory-mcp has verified that published v0.12.1 has no arbitrary-PID process-kill route and that the removed endpoint returns 404. The recommended upgrade for every distribution is v0.12.1; codebase-memory-mcp does not rely on historical PyPI prerelease delivery.
Workarounds
On affected Windows versions, do not enable the optional UI. Upgrade to a fixed stable release; the verified recommendation is v0.12.1. codebase-memory-mcp does not recommend relying on historical prerelease package delivery.
Credit
Reported privately by Aaron (@aaronjmars), who identified the remaining Windows gap after the initial remediation. codebase-memory-mcp thanks them.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | codebase-memory-mcp | all versions | 0.9.1-rc.1npm install codebase-memory-mcp@0.9.1-rc.1 |
| 🐍PyPI | codebase-memory-mcp | all versions | 0.10.0pip install --upgrade 'codebase-memory-mcp==0.10.0' |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for codebase-memory-mcp, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update codebase-memory-mcp to 0.9.1-rc.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-r2qv-x3rg-p49m is resolved across your whole dependency graph.
Workarounds
Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.
Frequently Asked Questions
Is GHSA-r2qv-x3rg-p49m in your dependencies?
Find it across npm, PyPI, including transitive dependencies.