Skip to content
Medium 6.6

Vulnerability in mcp-contextforge-gateway

CVE-2026-53708 First seen on SecPulse

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2026-53708 has been found in mcp-contextforge-gateway.
Attackers can target a specific entry point like httpx over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 6.6/10.
What to do: upgrade mcp-contextforge-gateway to 1.0.3 or later.
If unsure, ask your IT team or search "mcp-contextforge-gateway CVE-2026-53708" on the vendor's site.

CVE-2026-53708 (mcp-contextforge-gateway) — CWE-350 / CVSS v3 6.6
Attack vector: remote (network-reachable) / no user interaction
Attack surface: httpx / ResilientHttpClient / ssrf_blocked_networks / ssrf_dns_fail_closed
Patched: 1.0.3 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

A vulnerability (CWE-350) exists in mcp-contextforge-gateway. Attackers reach the vulnerable code path via httpx.

Affected scope

Check the vendor advisory for the affected versions of mcp-contextforge-gateway. Attack surface: httpx / ResilientHttpClient / ssrf_blocked_networks / ssrf_dns_fail_closed.

Severity

Severity: Medium (CVSS 6.6/10). Confidential information can be exposed externally.

How to fix

Update to 1.0.3.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'mcp-contextforge-gateway' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'mcp-contextforge-gateway' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で mcp-contextforge-gateway を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patchpatch
    Upgrade mcp-contextforge-gateway to 1.0.3

    ステージング環境で 1.0.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
pipmcp-contextforge-gateway
< 1.0.3→ 1.0.3
PyPImcp-contextforge-gateway
< 1.0.3→ 1.0.3
Original description The description as published by the source.

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.

Source: GitHub Security Advisories (Global) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details