High, CVSS 7.2MavenPublished
Spring AI MCP Security: Unvalidated URL Fetching (SSRF)
CVE-2026-45609 · GHSA-qjp4-4jvr-xqg3
- Affected
- Maven org.springaicommunity:mcp-client-security < 0.1.9
- Fixed in
- 0.1.9· Vendor fix available
- Issue
- The mcp-security framework fails to implement the mandatory SSRF mitigations outlined in the Model Context Protocol (MCP) security specifications. Specifically, it processes untrusted URLs for OAuth-related discovery and metadata without verifying if the targets are malicious or internal to the network. This only affects installations with Dynamic Client Registration (DCR) enabled: DCR does not validate URLs exposed by MCP Servers (protected resource metadata URL, authorization server URL) and Authorization Servers (all OAuth2 endpoints). Workaround When users need to perform DCR, they may provide their own McpOAuth2ClientManager. Both McpMetadataDiscoveryService and DynamicClientRegistrationService are also affected, if used, users should provide their own subclasses. Alternatively, users can provide the default implementations of these classes with a RestClient that implements URL filtering through ClientHttpRequestInterceptor.
Recommended action: Upgrade to 0.1.9 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.