The public report describes escaping the restricted Python namespace through object attributes when code mode exposes the executor to generated code. Restricting built-ins did not isolate the executing process. The issue reports v1.7.0; the later CNA record also lists 1.7.1. The relevant exposure depends on code_mode and untrusted code reaching…
Inspect the ClaimsCase · 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:
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.
Evidence basis: CLM-DEC02-MCP-USE-EXECUTOR-1 · CLM-DEC02-MCP-USE-EXECUTOR-2 · CLM-ENR299-MCPUSE-CLOSED-NOT-FIXED · mcp-use issue 2816: built-in Python executor sandbox escape · CVE-2026-140133 CNA record
At a glance
A restricted language namespace is not a process security boundary; intended use and enabled execution paths must be explicit.
Read the implicationsNo tested remediation release or exploitation prevalence established. The referenced GHSA could not be inspected.
Limits and uncertaintyFull account
The public report describes escaping the restricted Python namespace through object attributes when code mode exposes the executor to generated code. Restricting built-ins did not isolate the executing process. The issue reports v1.7.0; the later CNA record also lists 1.7.1. The relevant exposure depends on code_mode and untrusted code reaching execute_code, not simply installation of every mcp-use component.
A maintainer response says the built-in executor is not intended for production and directs users to external sandbox providers. Closing the issue does not prove that the process isolation boundary was repaired. The public issue predates the December 1 CVE publication, and the linked GHSA remained inaccessible during this research.
A restricted namespace is not an execution boundary
The reported built-in executor removes or constrains ordinary names but still runs Python in an environment where object relationships can expose capabilities beyond that namespace. The necessary prerequisite is a reachable untrusted-code path through enabled code mode. The consequence is execution with the process's actual permissions, not automatically root or host escape.
The maintainer's recommendation to use an external sandbox changes where trust must be enforced; it does not document a patched built-in interpreter. Closing the issue also does not demonstrate that the built-in path is safe. Unlike claw-code's project startup, this case starts after execution functionality has been deliberately enabled. Both require attention to the process's credentials, mounts and network access rather than relying on a model to avoid dangerous code.
Mechanism and trust boundary
- 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
- 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
- supportsmcp-use issue 2816: built-in Python executor sandbox escapeprimary disclosure
Issue 2816: vulnerability description and maintainer response
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
- supportsCVE-2026-140133 CNA recordprimary disclosure
CNA affected versions; description; references
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
- supportsmcp-use issue 2816: built-in Python executor sandbox escapeprimary disclosure
Issue 2816 maintainer response and closed status
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
- Dec 2, 2026 · Published version · first publication · revision 300