# CVE-2026-53710: MCP Context Forge: RestrictedPython sandbox bypass via getattr builtin in python\_sandbox\_server

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 10.0
- **CVSS:** 10.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.14% (percentile 66, 2026-11-26)
- **CWE:** CWE-94, CWE-693
- **Aliases:** GHSA-xm98-3vcf-fph7, PYSEC-2026-3862
- **Published:** 2026-08-24T19:20:58.000Z
- **Modified:** 2026-09-30T17:51:56.193Z

## Who should check

- Projects that depend on PyPI package mcp-contextforge-gateway (\< 1.0.2)
- Anyone running IBM mcp-context-forge \< 1.0.2

## 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

- PyPI `mcp-contextforge-gateway`: affected \< 1.0.2; fixed 1.0.2 (osv)
- IBM mcp-context-forge: \< 1.0.2 (cvelist)

## Mitigation

- Upgrade mcp-contextforge-gateway to 1.0.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/IBM/mcp-context-forge/security/advisories/GHSA-xm98-3vcf-fph7>
- vendor: <https://github.com/advisories/GHSA-xm98-3vcf-fph7>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-53710>
- patch: <https://github.com/IBM/mcp-context-forge/commit/63a2900e6301b9c8a483a38d3737a1beb3a7ce89>
- other: <https://github.com/IBM/mcp-context-forge/releases/tag/v1.0.2>
- other: <https://github.com/IBM/mcp-context-forge>
- other: <https://github.com/IBM/mcp-context-forge/releases#release-v1.0.2>
- other: <https://pypi.org/project/mcp-contextforge-gateway>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-53710>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xm98-3vcf-fph7> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-3862> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-53710> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-53710>
