CVE-2026-45609
Spring AI MCP Security: Unvalidated URL Fetching (SSRF)
Description
Summary
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:
spring.ai.mcp.client.authorization.dynamic-client-registration.enabled=true
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springaicommunity » mcp-client-security | < 0.1.9 | 0.1.9 |
Blast radius
50% of the dependent artifacts (1) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 5 |
Most used dependents
- org.springaicommunity » mcp-client-security-spring-boot0 usages
- org.springaicommunity » mcp-client-security-boot0 usages
Computed from the dependency graph of build 20261201.0702 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-45609 | nvd.nist.gov |
| Package | spring-ai-community/mcp-security | github.com |
| Web | spring-ai-community/mcp-security advisory GHSA-qjp4-4jvr-xqg3 | github.com |
| Web | spring-ai-community/mcp-security pull request #68 | github.com |
| Web | spring-ai-community/mcp-security commit e6b67d8 | github.com |
| Web | spring-ai-community/mcp-security release v0.1.9 | github.com |
