mcp-use up to 1.7.1 CodeExecutor code_executor.py _build_namespace code code injection

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.9$0-$5k0.31+

Summaryinfo

A vulnerability was found in mcp-use up to 1.7.1. It has been classified as critical. Affected by this issue is the function _build_namespace of the file libraries/python/mcp_use/client/code_executor.py of the component CodeExecutor. The manipulation of the argument code leads to code injection. This vulnerability is listed as CVE-2026-140133. The attack may be initiated remotely. In addition, an exploit is available. 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.

Detailsinfo

A vulnerability, which was classified as critical, has been found in mcp-use up to 1.7.1. This issue affects the function _build_namespace of the file libraries/python/mcp_use/client/code_executor.py of the component CodeExecutor. The manipulation of the argument code with an unknown input leads to a code injection vulnerability. Using CWE to declare the problem leads to CWE-94. The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. Impacted is confidentiality, integrity, and availability.

It is possible to read the advisory at github.com. The identification of this vulnerability is CVE-2026-140133. The exploitation is known to be easy. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details as well as a exploit are known. The pricing for an exploit might be around USD $0-$5k at the moment (estimation calculated on 11/30/2026). The attack technique deployed by this issue is T1059 according to MITRE ATT&CK.

It is declared as proof-of-concept. 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.

There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Productinfo

Type

Name

Version

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.3
VulDB Meta Temp Score: 6.9

VulDB Base Score: 7.3
VulDB Temp Score: 6.9
VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Code injection
CWE: CWE-94 / CWE-74 / CWE-707
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Yes

Availability: 🔒
Status: Proof-of-Concept
Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: no mitigation known
Status: 🔍

0-Day Time: 🔒

Timelineinfo

11/30/2026 Advisory disclosed
11/30/2026 +0 days VulDB entry created
11/30/2026 +0 days VulDB entry last update

Sourcesinfo

Product: github.com

Advisory: 2816
Status: Confirmed
Confirmation: 🔒

CNA: VulDB
CVE: CVE-2026-140133 (🔒)

GCVE (CVE): GCVE-0-2026-140133
GCVE (VulDB): GCVE-100-446843
scip Labs: https://www.scip.ch/en/?labs.20161013

Entryinfo

Created: 11/30/2026 22:57
Changes: 11/30/2026 22:57 (58)
Complete: 🔍
Submitter: carfeii
Cache ID: 216::103

Submitinfo

Accepted

  • Submit #1084774: https://github.com/mcp-use/ mcp-use <= 1.7.0 Improper Control of Generation of Code (by carfeii)

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!