CVE-2026-140133 PUBLISHED

mcp-use CodeExecutor code_executor.py _build_namespace code injection

Assigner: VulDB
Reserved: 30.11.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 6.9

Product Status

Vendor n/a
Product mcp-use
Versions
  • Version 1.7.0 is affected
  • Version 1.7.1 is affected

Credits

  • carfeii (VulDB User) reporter
  • VulDB CNA Team coordinator

References

Problem Types

  • Code Injection CWE
  • Injection CWE