Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-53708

MEDIUM 6.6EPSS 21%

ContextForge: DNS TOCTOU race condition causes SSRF protection bypass (`/admin/gateways/test`)

Also known as GHSA-9hgc-g3w5-67cm, PYSEC-2026-3684

Mitigation

  • Upgrade mcp-contextforge-gateway to 1.0.3 or later.

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

Vulnerability facts

Affected
mcp-contextforge-gateway < 1.0.3
Fixed in
1.0.3
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
6.6 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:NOpen in CVSS calculator
Show all 8 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
EPSS
0.35% chance of exploitation in 30 days (percentile 21, 2026-11-26)
CWE
CWE-350, CWE-367, CWE-918
Published
Modified

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

Package / productAffectedFixedSource
PyPI mcp-contextforge-gateway< 1.0.31.0.3osv
IBM mcp-context-forge< 1.0.3—cvelist
IBM mcp-contextforge-gateway< 1.0.3—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-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.

References

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.

Sponsors