freenode

← CVE tracker

CVE-2026-140133

mcp-use CodeExecutor code_executor.py _build_namespace code injection

Severity
medium CVSS 6.9 (v4.0)
Affects
mcp-use · n/a
Weakness
CWE-94: Code Injection
Published
1 December 2026 by VulDB
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. Executing a manipulation of the argument code can lead to code injection. The attack can be launched remotely. The project maintainer explains, that the built-in Python sandbox executor is not meant for production use and users should rely on external sandbox providers.

Our coverage

We have not written about this one. Know why it matters? Send a tip.