Case · DiggingBeagle record

mcp-use built-in Python execution did not provide a secure sandbox

The issue describes a namespace escape in the built-in Python executor and a maintainer statement that it is not for production sandboxing.

Published by DiggingBeagle:

Scope

Built-in Python CodeExecutor with code mode and an untrusted-code path enabled.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
not established
Evidence
Grade B
Remediation
mitigation available
AI role
AGAINST AI
Basis and provenance

The public issue supplies a code-path argument and the project response, while saying a full proof of concept is available on request. That fuller reproduction was not inspected. External isolation guidance is available, but no corrected built-in release or field exploitation is verified. Impact remains unscored: the evidence describes conditional or study-specific effects, and this pack supplies no calibrated mapping from those effects to a numeric impact band. Evidence strength reflects the stated provenance and limitations, not the number of sources.

Assessed Dec 2, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Enabled code mode accepts code

    An application or model passes untrusted code to the built-in executor with code mode enabled.

    Boundary: untrusted generated code -> in-process interpreter

  2. 02

    Reachable objects exceed the name allowlist

    The public report describes attribute access reaching capabilities despite a restricted built-in namespace. The full requested reproduction was not inspected.

    Boundary: restricted names -> process capabilities

Claims & evidence

CLM-DEC02-MCP-USE-EXECUTOR-1The issue describes a namespace escape in the built-in Python executor and a maintainer statement that it is not for production sandboxing.supported

Basis: reported finding

Link to claim
CLM-DEC02-MCP-USE-EXECUTOR-2CVE-2026-140133 lists versions 1.7.0 and 1.7.1 and repeats the external-sandbox guidance.supported

Basis: reported finding

Link to claim
CLM-ENR299-MCPUSE-CLOSED-NOT-FIXEDThe maintainer response recommends external isolation and says the built-in executor is not intended for production sandboxing; issue closure is not evidence of a repaired built-in sandbox.supported

Basis: inference

Link to claim

Implications

A restricted language namespace is not a process security boundary; intended use and enabled execution paths must be explicit.

Controls and mitigations

  • Disable built-in execution for untrusted code or place it behind an independently enforced sandbox.
  • Constrain credentials, writable mounts and egress in the chosen execution environment; an external provider name alone is not evidence of an appropriate configuration.

Unknowns and contradictions

  • No tested remediation release or exploitation prevalence established.
  • The referenced GHSA could not be inspected.

Sources and citation

Material revision history

  1. Dec 2, 2026 · Published version · first publication · revision 300