Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mcp-contextforge-gateway
  4. ›
  5. CVE-2026-53708

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

August 14, 2026

The /admin/gateways/test endpoint validates submitted URLs by resolving the hostname at validation time and blocking private address ranges. The HTTP client independently re-resolves DNS at connection time with no IP binding between the two operations, creating a TOCTOU window exploitable via DNS rebinding. The source code explicitly acknowledges this limitation in two separate locations.

References

  • github.com/IBM/mcp-context-forge/releases/tag/v1.0.3
  • github.com/IBM/mcp-context-forge/security/advisories/GHSA-9hgc-g3w5-67cm
  • github.com/advisories/GHSA-9hgc-g3w5-67cm
  • nvd.nist.gov/vuln/detail/CVE-2026-53708

Code Behaviors & Features

Detect and mitigate CVE-2026-53708 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.0.3

Fixed versions

  • 1.0.3

Solution

Upgrade to version 1.0.3 or above.

Impact 6.6 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action
  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

pypi/mcp-contextforge-gateway/CVE-2026-53708.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:21 +0000.