# CVE-2026-53710: MCP Context Forge: RestrictedPython sandbox bypass via getattr builtin in python_sandbox_server

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-01)
- Published: 2026-08-24T19:20:58.000Z
- Modified: 2026-09-30T17:51:56.193Z
- Also known as: GHSA-xm98-3vcf-fph7, PYSEC-2026-3862
- Weaknesses: CWE-94, CWE-693
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- IBM mcp-context-forge: < 1.0.2
- mcp-contextforge-gateway (PyPI): before 1.0.2

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2026-53710](https://www.cve.org/CVERecord?id=CVE-2026-53710), CVE Terms of Use, modified 2026-09-15
- GitHub Advisory Database: [GHSA-xm98-3vcf-fph7](https://github.com/advisories/GHSA-xm98-3vcf-fph7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-53710](https://nvd.nist.gov/vuln/detail/CVE-2026-53710), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-3862](https://osv.dev/vulnerability/PYSEC-2026-3862), CC-BY-4.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-53710 · Whole record: https://cve.day/CVE-2026-53710.json · Rebuilt by cve.day 2026-11-25T22:59:38.593Z
