
mcp-use CodeExecutor Flaw Exposes Remote Code Injection Risk
A medium-severity vulnerability, CVE-2026-140133, has been identified in the mcp-use library up to version 1.7.1. The flaw allows remote attackers to inject code by manipulating the 'code' argument in the _build_namespace function of the CodeExecutor component. The project maintainer advises that the built-in Python sandbox executor is not intended for production use and recommends relying on external sandbox providers instead.













