{"id":"CVE-2026-34237","aliases":["CVE-2026-34237","GHSA-hv2w-8mjj-jw22"],"related":[],"kind":"vulnerability","state":"published","title":"MCP Java SDK has a Hardcoded Wildcard CORS (Access-Control-Allow-Origin: *)","summary":"MCP Java SDK is the official Java SDK for Model Context Protocol servers and clients. Prior to versions 0.83.0, 1.0.1, and 1.1.1, there is a hardcoded wildcard CORS vulnerability. This issue has been patched in versions 0.83.0, 1.0.1, and 1.1.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"MCP Java SDK is the official Java SDK for Model Context Protocol servers and clients. Prior to versions 0.83.0, 1.0.1, and 1.1.1, there is a hardcoded wildcard CORS vulnerability. This issue has been patched in versions 0.83.0, 1.0.1, and 1.1.1.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n**Hardcoded Wildcard CORS (Access-Control-Allow-Origin: * )**\n\n- https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletSseServerTransportProvider.java#L289\n- https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletStreamableServerTransportProvider.java#L525\n\n### Attack Scenario\nAn attacker-controlled web page instructs the victim's browser to open GET https://internal-mcp-server/sse. Because Access-Control-Allow-Origin: * allows cross-origin SSE reads, the attacker's page receives the endpoint event — which contains the session ID. The attacker can then POST to that endpoint from their page using the victim's browser as a relay.\n\n### Comparison with python-sdk\nNo Access-Control-Allow-Origin header is emitted by either Python transport. The browser's default same-origin policy remains in full effect.\nhttps://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/server/sse.py\nhttps://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/server/streamable_http.py\n\n### Recommendation\nIn the SDK, the transport layer should not own CORS policy. Server implementors who need cross-origin access can add a CORS filter at the servlet filter or Spring Security layer.\n\n### Reference\n\n- https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html#access-control-allow-origin","format":"markdown","source":"ghsa"},{"lang":"es","text":"MCP Java SDK es el SDK oficial de Java para servidores y clientes del Protocolo de Contexto de Modelo. Antes de las versiones 1.0.1 y 1.1.1, existe una vulnerabilidad CORS de comodín codificado. Este problema ha sido parcheado en las versiones 1.0.1 y 1.1.1.","source":"nvd"}],"published":"2026-03-30T17:26:44.000Z","modified":"2026-09-10T03:50:39.742Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-942"],"affected":[{"ranges":[{"version":">= 1.0.0, < 1.0.1","status":"affected"},{"version":">= 1.1.0, < 1.1.1","status":"affected"},{"version":"< 0.18.3","status":"affected"}],"vendor":"modelcontextprotocol","product":"java-sdk","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0","status":"affected","fixed":"1.0.1"}],"ecosystem":"Maven","package":"io.modelcontextprotocol.sdk:mcp-core","purl":"pkg:maven/io.modelcontextprotocol.sdk/mcp-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.1.0","status":"affected","fixed":"1.1.1"}],"ecosystem":"Maven","package":"io.modelcontextprotocol.sdk:mcp-core","purl":"pkg:maven/io.modelcontextprotocol.sdk/mcp-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.18.3"}],"ecosystem":"Maven","package":"io.modelcontextprotocol.sdk:mcp-core","purl":"pkg:maven/io.modelcontextprotocol.sdk/mcp-core","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.0.1"},{"status":"affected","version":"1.1.0"}],"vendor":"lfprojects","product":"mcp_java_sdk","cpe":"cpe:2.3:a:lfprojects:mcp_java_sdk:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/modelcontextprotocol/java-sdk/security/advisories/GHSA-hv2w-8mjj-jw22","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletSseServerTransportProvider.java#L289","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletStreamableServerTransportProvider.java#L525","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34237","tags":["advisory"],"sources":["ghsa"]},{"url":"https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html#access-control-allow-origin","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/modelcontextprotocol/java-sdk","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-31T18:50:15.819Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34237","url":"https://www.cve.org/CVERecord?id=CVE-2026-34237","licence":"CVE Terms of Use","modified":"2026-06-09T18:39:37.473Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hv2w-8mjj-jw22","url":"https://github.com/advisories/GHSA-hv2w-8mjj-jw22","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:39.742Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34237","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34237","licence":"Public domain","modified":"2026-07-24T20:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:17.598Z","epss":{"score":0.00257,"percentile":0.18509,"date":"2026-12-01T12:00:22.000Z"}}