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.
Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 02 Dec 2026 10:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 01 Dec 2026 07:45:00 +0000

Type Values Removed Values Added
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.
Title mcp-use CodeExecutor code_executor.py _build_namespace code injection
First Time appeared Mcp-use
Mcp-use mcp-use
Weaknesses CWE-74
CWE-94
CPEs cpe:2.3:a:mcp-use:mcp-use:*:*:*:*:*:*:*:*
Vendors & Products Mcp-use
Mcp-use mcp-use
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 7.3, 'vector': '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'}

cvssV3_1

{'score': 7.3, 'vector': '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'}

cvssV4_0

{'score': 6.9, 'vector': '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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-12-01T13:52:35.784Z

Reserved: 2026-11-30T21:51:05.191Z

Link: CVE-2026-140133

cve-icon Vulnrichment

Updated: 2026-12-01T13:31:53.728Z

cve-icon NVD

Status : Deferred

Published: 2026-12-01T08:17:13.800

Modified: 2026-12-01T14:18:20.957

Link: CVE-2026-140133

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-12-04T14:00:07Z

Weaknesses