CVE-2026-44427: MCP Registry has open redirect via protocol-relative path in trailing-slash middleware
The TrailingSlashMiddleware in internal/api/server.go is vulnerable to an open redirect attack. An attacker can craft a URL with a protocol-relative path (e.g., //evil.com/) that, after trailing slash removal, results in a Location header of //evil.com — which browsers interpret as an absolute URL to an external domain.
References
- github.com/advisories/GHSA-v8vw-gw5j-w7m6
- github.com/modelcontextprotocol/registry
- github.com/modelcontextprotocol/registry/commit/1201cbd82b2cf6d4b56edfc05c763059a12f9fdb
- github.com/modelcontextprotocol/registry/pull/1227
- github.com/modelcontextprotocol/registry/releases/tag/v1.7.5
- github.com/modelcontextprotocol/registry/security/advisories/GHSA-v8vw-gw5j-w7m6
- nvd.nist.gov/vuln/detail/CVE-2026-44427
Code Behaviors & Features
Detect and mitigate CVE-2026-44427 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →