cvelo
P2 · HighCVSS 7.3EPSS 0.6%

mcp-use CodeExecutor code_executor.py _build_namespace code injection

  • CVE-2026-140133
  • GHSA-c2cv-qv6m-wqf7
  • EUVD-2026-139966

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.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • mcp-use

    Affected versionsFixed in
    1.7.0none stated
    1.7.1none stated

Product versions from the ENISA EUVD record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.