CVE-2026-53710
MCP Context Forge: RestrictedPython sandbox bypass via getattr builtin in python_sandbox_server
Also known as GHSA-xm98-3vcf-fph7, PYSEC-2026-3862
Mitigation
- Upgrade mcp-contextforge-gateway to 1.0.2 or later.
Who should check
- Projects that depend on PyPI package mcp-contextforge-gateway (< 1.0.2)
- Anyone running IBM mcp-context-forge < 1.0.2
Vulnerability facts
- Affected
- mcp-contextforge-gateway < 1.0.2
- Fixed in
- 1.0.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 10.0 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 1.14% chance of exploitation in 30 days (percentile 66, 2026-11-26)
- CWE
- CWE-94, CWE-693
- Modified
Description
MCP Context Forge is an AI gateway, registry, and proxy for MCP, A2A, REST, and gRPC APIs. Prior to 1.0.2, the python_sandbox_server in mcp-servers/python/python_sandbox_server/src/python_sandbox_server/server_fastmcp.py exposes raw getattr through safe_builtins, omits a required _getattr_ guard, and relies on validate_code checks for literal dangerous dunder strings. An attacker can construct dunder names at runtime, traverse the Python class hierarchy, reach subprocess.Popen, and execute OS commands with the server process privileges through the execute_code MCP tool. The HTTP/SSE transport can expose this tool without authentication, while stdio-only deployments have reduced network reachability. The issue affects the python_sandbox_server subproject and does not directly affect the core Context Forge gateway or proxy components. This issue is fixed in version 1.0.2.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI mcp-contextforge-gateway | < 1.0.2 | 1.0.2 | osv |
| IBM mcp-context-forge | < 1.0.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-53710. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-53710.md Affected: mcp-contextforge-gateway < 1.0.2 Fixed in: 1.0.2 Steps: 1. Search this machine and project for mcp-contextforge-gateway (PyPI), IBM mcp-context-forge: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-53710 being exploited?
There is no confirmed exploitation: CVE-2026-53710 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.14% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-53710?
Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-53710?
mcp-contextforge-gateway < 1.0.2.
Is there a fix for CVE-2026-53710?
Yes. Fixed in 1.0.2. Upgrade mcp-contextforge-gateway to 1.0.2 or later.
How do I check if I'm affected by CVE-2026-53710?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.