CVE-2026-140133: mcp-use · Code Injection
Affects mcp-useSource CVE Database V5
Public exploit available · CVSS 6.9 Medium.
Data as of 1 Dec 2026, 07:47 UTC
Thin evidence
One scorer or none| CNA (VulDB) | CVSS 4.0 | 6.9 |
|---|---|---|
| CNA (VulDB) | CVSS 3.1 | 7.3 |
| CNA (VulDB) | CVSS 3.0 | 7.3 |
| CNA (VulDB) | CVSS 2.0 | 7.5 |
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 1 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
CVSS exploit maturity: proof of concept public
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| mcp-use | Affected
| Fixed in– |
CPE configurations (1)
cpe:2.3:a:mcp-use:mcp-use:*:*:*:*:*:*:*:*
AI-suggested
Users are advised to avoid using the built-in Python sandbox executor in production environments. Instead, they should rely on external sandbox providers that offer stronger isolation and security guarantees to prevent code injection attacks.
Description
CVE-2026-140133 is a code injection vulnerability in the mcp-use project affecting versions 1.7.0 and 1.7.1. The flaw exists in the _build_namespace function within the CodeExecutor component's code_executor.py file. An attacker can remotely manipulate the code argument to execute arbitrary code. The project maintainer advises that the built-in Python sandbox executor is not intended for production and recommends using external sandbox providers.
References
- vuldb.com/vuln/446843 (opens in a new tab)
- vuldb.com/vuln/446843/cti (opens in a new tab)
- vuldb.com/cve/CVE-2026-140133 (opens in a new tab)
- vuldb.com/submit/1084774 (opens in a new tab)
- github.com/mcp-use/mcp-use/issues/2816 (opens in a new tab)
- github.com/mcp-use/mcp-use/security/advisories/GHSA-j72j-pww4-gg46 (opens in a new tab)
- github.com/mcp-use/mcp-use/ (opens in a new tab)