Skip to main content
VulnerabilityPublished

CVE-2026-140133: mcp-use · Code Injection

Affects mcp-useSource CVE Database V5

0
Compare

Public exploit available · CVSS 6.9 Medium.

Data as of 1 Dec 2026, 07:47 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (VulDB)CVSS 4.06.9
CNA (VulDB)CVSS 3.17.3
CNA (VulDB)CVSS 3.07.3
CNA (VulDB)CVSS 2.07.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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    CVSS exploit maturity: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.

What to do

Affected software

ProductAffectedFixed in
mcp-useAffected
  • =1.7.0
  • =1.7.1
Fixed in–

CPE configurations (1)

  • cpe:2.3:a:mcp-use:mcp-use:*:*:*:*:*:*:*:*

AI-suggested

Users are advised to avoid using the built-in Python sandbox executor in production environments. Instead, they should rely on external sandbox providers that offer stronger isolation and security guarantees to prevent code injection attacks.

Description

CVE-2026-140133 is a code injection vulnerability in the mcp-use project affecting versions 1.7.0 and 1.7.1. The flaw exists in the _build_namespace function within the CodeExecutor component's code_executor.py file. An attacker can remotely manipulate the code argument to execute arbitrary code. The project maintainer advises that the built-in Python sandbox executor is not intended for production and recommends using external sandbox providers.

References

Community reviews

Loading reviews…