CVE-2026-140133
MEDIUM 5.5CVSS 4.0mcp-use CodeExecutor code_executor.py _build_namespace code injection
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.
- Published
- 1 Dec 2026
- Last modified
- 1 Dec 2026
- Assigned by
- cna@vuldb.com
- NVD status
- Deferred
- Weakness
- CWE-74CWE-94
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| CVE List | VulDB | CVSS 4.0 | MEDIUM 6.9 | 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 |
| NVD | cna@vuldb.com (Secondary) | CVSS 4.0 | MEDIUM 5.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:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | cna@vuldb.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| CVE List | VulDB | CVSS 3.1 | HIGH 7.3 | 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 |
| CVE List | VulDB | CVSS 3.0 | HIGH 7.3 | 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 |
| NVD | cna@vuldb.com (Secondary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| CVE List | VulDB | CVSS 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | n/a | mcp-usecpe:2.3:a:mcp-use:mcp-use:*:*:*:*:*:*:*:* |
= 1.7.0; = 1.7.1 |
References
- https://github.com/mcp-use/mcp-use/ · product
- https://github.com/mcp-use/mcp-use/issues/2816 · issue-tracking
- https://github.com/mcp-use/mcp-use/security/advisories/GHSA-j72j-pww4-gg46 · broken-link
- https://vuldb.com/cve/CVE-2026-140133 · third-party-advisory
- https://vuldb.com/submit/1084774 · third-party-advisory
- https://vuldb.com/vuln/446843 · vdb-entry, technical-description
- https://vuldb.com/vuln/446843/cti · signature, permissions-required
History
- 1 Dec 2026 14:27 UTC · NVD: updated (other details)
- 1 Dec 2026 14:04 UTC · CVE List: updated (other details)
- 1 Dec 2026 08:28 UTC · NVD: first stored (published 1 Dec 2026)
- 1 Dec 2026 07:35 UTC · CVE List: first stored (published 1 Dec 2026)