# CVE-2026-53708: ContextForge: DNS TOCTOU race condition causes SSRF protection bypass (`/admin/gateways/test`)

- Severity: Medium 6.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N`
- 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.28%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-14T19:49:14.000Z
- Modified: 2026-09-30T19:57:08.043Z
- Also known as: GHSA-9hgc-g3w5-67cm, PYSEC-2026-3684
- Weaknesses: CWE-350, CWE-367, CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

ContextForge is an AI gateway, registry, and proxy that provides centralized discovery, guardrails, and management for MCP, A2A, and REST or gRPC APIs. Prior to 1.0.3, the /admin/gateways/test call site in mcpgateway/admin.py calls validate_gateway_test_url() in mcpgateway/common/validators.py to resolve and reject private, loopback, link-local, and cloud-metadata addresses, but ResilientHttpClient later resolves the original hostname again without binding the validated address. When MCPGATEWAY_ADMIN_API_ENABLED is enabled, an attacker with a database-backed role containing explicit gateways.read permission can use DNS rebinding to return a public address during validation and a private or metadata address during connection, bypassing ssrf_blocked_networks and ssrf_dns_fail_closed because those controls apply only to the validation-time result. The endpoint's allow_admin_bypass=False setting means a bootstrap-only virtual platform-admin identity without a database role is not sufficient. Successful exploitation can reach internal services and cloud metadata, expose cloud credentials, access internal APIs, or probe internal network ports. This issue is fixed in version 1.0.3.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/IBM/mcp-context-forge/security/advisories/GHSA-9hgc-g3w5-67cm> (exploit, web)
- <https://github.com/IBM/mcp-context-forge/commit/fba11a99babd80779fa05510b35fb6a153bbacaf>
- <https://github.com/IBM/mcp-context-forge/releases/tag/v1.0.3> (web)
- <https://github.com/IBM/mcp-context-forge> (package)
- <https://pypi.org/project/mcp-contextforge-gateway> (package)
- <https://github.com/advisories/GHSA-9hgc-g3w5-67cm> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-53708> (advisory)

## Sources

- CVE List: [CVE-2026-53708](https://www.cve.org/CVERecord?id=CVE-2026-53708), CVE Terms of Use, modified 2026-09-14
- GitHub Advisory Database: [GHSA-9hgc-g3w5-67cm](https://github.com/advisories/GHSA-9hgc-g3w5-67cm), CC-BY-4.0, modified 2026-08-19
- NVD: [CVE-2026-53708](https://nvd.nist.gov/vuln/detail/CVE-2026-53708), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-3684](https://osv.dev/vulnerability/PYSEC-2026-3684), CC-BY-4.0, modified 2026-08-19

---

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