---
title: "CVE-2026-140133: mcp-use - Command Injection"
description: "mcp-use <= 1.7.1 contains a command injection caused by manipulation of the \"code\" argument in _build_namespace function of CodeExecutor component, letting remote attackers execute arbitrary code, exploit requires remote access."
url: https://panop.io/threat-heartbeat/CVE-2026-140133/
---

# CVE-2026-140133 mcp-use - Command Injection

mcp-use <= 1.7.1 contains a command injection caused by manipulation of the "code" argument in \_build\_namespace function of CodeExecutor component, letting remote attackers execute arbitrary code, exploit requires remote access.

CVSS base score 7.3 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

EPSS

0.56% chance of exploitation in 30 days

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-140133)

## Details

Type

Command Injection

Impact

Remote Code Execution

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Published

1 December 2026

Updated

3 December 2026

Weakness

[CWE-74](https://cwe.mitre.org/data/definitions/74.html)

## Vendor fix

Update to the latest version or use external sandbox providers as recommended.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-140133](https://nvd.nist.gov/vuln/detail/CVE-2026-140133)
- [https://github.com/mcp-use/mcp-use/security/advisories/GHSA-j72j-pww4-gg46](https://github.com/mcp-use/mcp-use/security/advisories/GHSA-j72j-pww4-gg46)
- [https://vuldb.com/cve/CVE-2026-140133](https://vuldb.com/cve/CVE-2026-140133)
- [https://vuldb.com/submit/1084774](https://vuldb.com/submit/1084774)
- [https://vuldb.com/vuln/446843](https://vuldb.com/vuln/446843)
- [https://vuldb.com/vuln/446843/cti](https://vuldb.com/vuln/446843/cti)
- [https://github.com/mcp-use/mcp-use/](https://github.com/mcp-use/mcp-use/)
- [https://github.com/mcp-use/mcp-use/issues/2816](https://github.com/mcp-use/mcp-use/issues/2816)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
