CVE-2026-140133
published medium CVSS 4.0 · 6.9mcp-use CodeExecutor code_executor.py _build_namespace code injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | mcp-use1.7.0 · 1.7.1 | Affected | Not stated | VulDB |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- VulDB · cna
- Vector string
- 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:P
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.3 | high | VulDB · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C | — |
| 3.0 | 7.3 | high | VulDB · cna | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C | — |
| 2.0 | 7.5 | high | VulDB · cna | AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | mcp-use | 1.7.0 (affected)1.7.1 (affected) | VulDB · cna |
Weaknesses
2- CWE-94 Code Injection
- CWE-74 Injection
References
7- https://github.com/mcp-use/mcp-use/
- https://github.com/mcp-use/mcp-use/issues/2816
- https://github.com/mcp-use/mcp-use/security/advisories/GHSA-j72j-pww4-gg46
- CVE-2026-140133 | CVE Analysis and Report https://vuldb.com/cve/CVE-2026-140133
- Submit #1084774 | https://github.com/mcp-use/ mcp-use <= 1.7.0 Improper Control of Generation of Code https://vuldb.com/submit/1084774
- VDB-446843 | mcp-use CodeExecutor code_executor.py _build_namespace code injection https://vuldb.com/vuln/446843
- VDB-446843 | CTI Indicators (IOB, IOC, TTP, IOA) https://vuldb.com/vuln/446843/cti
Provider assertions
2VulDB · cna
mcp-use CodeExecutor code_executor.py _build_namespace code injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3c958e3fee3611178b4078598de93dea04a60f51fbd957d55d9f55a78837582a
- Ingested
- 01 Dec 2026, 13:55:19 UTC
- Source record
- Official CVE record