# CVE-2026-140133: mcp-use CodeExecutor code_executor.py _build_namespace code injection

- Severity: Medium 6.9 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-12-01T07:30:20.490Z
- Modified: 2026-12-01T14:18:20.957Z
- Weaknesses: CWE-74, CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- mcp-use: 1.7.0; 1.7.1

## Every score

- VulDB: CVSS:4.0 6.9 Medium `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`
- VulDB: CVSS:3.1 7.3 High `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`
- VulDB: CVSS:3.0 7.3 High `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`
- VulDB: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C`

## References

- <https://vuldb.com/vuln/446843> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/446843/cti> (permissions-required, signature)
- <https://vuldb.com/cve/CVE-2026-140133> (third-party-advisory)
- <https://vuldb.com/submit/1084774> (third-party-advisory)
- <https://github.com/mcp-use/mcp-use/issues/2816> (issue-tracking)
- <https://github.com/mcp-use/mcp-use/security/advisories/GHSA-j72j-pww4-gg46> (broken-link)
- <https://github.com/mcp-use/mcp-use/> (product)

## Sources

- CVE List: [CVE-2026-140133](https://www.cve.org/CVERecord?id=CVE-2026-140133), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-140133](https://nvd.nist.gov/vuln/detail/CVE-2026-140133), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140133 · Whole record: https://cve.day/CVE-2026-140133.json · Rebuilt by cve.day 2026-12-01T14:32:17.048Z
