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

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

- **Severity:** MEDIUM 6.6
- **CVSS:** 6.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-350, CWE-367, CWE-918
- **Aliases:** GHSA-9hgc-g3w5-67cm, PYSEC-2026-3684
- **Published:** 2026-08-14T19:49:14.000Z
- **Modified:** 2026-09-30T19:57:08.043Z

## Who should check

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

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

## Affected and fixed versions

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

## Mitigation

- Upgrade mcp-contextforge-gateway to 1.0.3 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-53708. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53708.md
Affected: mcp-contextforge-gateway < 1.0.3
Fixed in: 1.0.3

Steps:
1. Search this machine and project for mcp-contextforge-gateway (PyPI), IBM mcp-context-forge, IBM mcp-contextforge-gateway: 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-53708 being exploited?

There is no confirmed exploitation: CVE-2026-53708 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-53708?

Medium: CVSS 6.6 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-53708?

mcp-contextforge-gateway \< 1.0.3.

### Is there a fix for CVE-2026-53708?

Yes. Fixed in 1.0.3. Upgrade mcp-contextforge-gateway to 1.0.3 or later.

### How do I check if I'm affected by CVE-2026-53708?

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-9hgc-g3w5-67cm>
- vendor: <https://github.com/advisories/GHSA-9hgc-g3w5-67cm>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-53708>
- patch: <https://github.com/IBM/mcp-context-forge/commit/fba11a99babd80779fa05510b35fb6a153bbacaf>
- other: <https://github.com/IBM/mcp-context-forge/releases/tag/v1.0.3>
- other: <https://github.com/IBM/mcp-context-forge>
- 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-53708>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-9hgc-g3w5-67cm> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-3684> (license: <https://creativecommons.org/licenses/by/4.0/>)

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