{"id":"CVE-2026-45609","aliases":["CVE-2026-45609","GHSA-qjp4-4jvr-xqg3"],"related":[],"kind":"vulnerability","state":"published","title":"mcp-security: Unvalidated URL Fetching (SSRF)","summary":"mcp-security provides Security and Authorization support for Model Context Protocol in Spring AI. Prior to 0.1.9, 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 This vulnerability is fixed in 0.1.9.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"mcp-security provides Security and Authorization support for Model Context Protocol in Spring AI. Prior to 0.1.9, 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 This vulnerability is fixed in 0.1.9.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe mcp-security framework fails to implement the mandatory SSRF mitigations outlined in the Model Context Protocol (MCP) [security specifications](https://modelcontextprotocol.io/docs/tutorials/security/security_best_practices#mitigation-3). Specifically, it processes untrusted URLs for OAuth-related discovery and metadata without verifying if the targets are malicious or internal to the network.\n\nThis only affects installations with Dynamic Client Registration (DCR) enabled:\n\n```properties\nspring.ai.mcp.client.authorization.dynamic-client-registration.enabled=true\n```\n\nDCR does not validate URLs exposed by MCP Servers (protected resource metadata URL, authorization server URL) and Authorization Servers (all OAuth2 endpoints).\n\n### Workaround\n\nWhen 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.\n\nAlternatively, users can provide the default implementations of these classes with a `RestClient` that implements URL filtering through `ClientHttpRequestInterceptor`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"mcp-security proporciona soporte de Seguridad y Autorización para el Protocolo de Contexto del Modelo en Spring AI. Antes de la versión 0.1.9, el framework mcp-security no implementa las mitigaciones obligatorias de SSRF descritas en las especificaciones de seguridad del Protocolo de Contexto del Modelo (MCP). Específicamente, procesa URLs no confiables para el descubrimiento y los metadatos relacionados con OAuth sin verificar si los objetivos son maliciosos o internos a la red. Esto solo afecta a instalaciones con el Registro Dinámico de Clientes (DCR) habilitado. Esta vulnerabilidad se corrige en la versión 0.1.9.","source":"nvd"}],"published":"2026-05-18T13:29:29.000Z","modified":"2026-07-21T12:10:00.090Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 0.1.9","status":"affected"}],"vendor":"spring-ai-community","product":"mcp-security","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.1.9"}],"ecosystem":"Maven","package":"org.springaicommunity:mcp-client-security","purl":"pkg:maven/org.springaicommunity/mcp-client-security","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.1.0","fixed":"0.1.9"}],"vendor":"springaicommunity","product":"mcp_security","cpe":"cpe:2.3:a:springaicommunity:mcp_security:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/spring-ai-community/mcp-security/security/advisories/GHSA-qjp4-4jvr-xqg3","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45609","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spring-ai-community/mcp-security/pull/68","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spring-ai-community/mcp-security/commit/e6b67d8a67cd7acbee6e4c0741c385d62e3ed576","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spring-ai-community/mcp-security","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/spring-ai-community/mcp-security/releases/tag/v0.1.9","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-02T01:21:25.215Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45609","url":"https://www.cve.org/CVERecord?id=CVE-2026-45609","licence":"CVE Terms of Use","modified":"2026-06-02T01:21:35.943Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qjp4-4jvr-xqg3","url":"https://github.com/advisories/GHSA-qjp4-4jvr-xqg3","licence":"CC-BY-4.0","modified":"2026-06-09T10:45:18.369Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45609","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45609","licence":"Public domain","modified":"2026-07-21T12:10:00.090Z"}],"updatedAt":"2026-11-25T22:59:23.326Z","epss":{"score":0.00207,"percentile":0.11446,"date":"2026-12-01T12:00:22.000Z"}}