CVE-2026-140133
JSON

6.9medium

mcp-use CodeExecutor code_executor.py _build_namespace code injection

Severity
6.9medium CVSS:4.0 by VulDB
Exploit likelihood
0.45% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
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.

Affected

Product or packageVersionsReported by
mcp-use1.7.0, 1.7.1CVE List

All scores

VulDB6.9medium CVSS:4.0CVSS: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
VulDB7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C
VulDB7.3high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C
VulDB7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C

Classification

CWE-74CWE-94

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-140133 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-140133 changed 2026-12-01Public domain