MCP Java SDK has a Hardcoded Wildcard CORS (Access-Control-Allow-Origin: *)
CVE-2026-34237 · GHSA-hv2w-8mjj-jw22 · published 2026-03-30 · updated 2026-06-09
- Severity
- Medium
- CVSS score
- 6.1
- Chance of exploitation (EPSS)
- 0.24%
- Fixed in
- 1.1.1
- Exploitation No known exploitation
- Automatable No
- Technical impact Partial
- CISA SSVC
Hardcoded Wildcard CORS (Access-Control-Allow-Origin: )** https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletSseServerTransportProvider.java#L289 https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletStreamableServerTransportProvider.java#L525
Upgrade io.modelcontextprotocol.sdk:mcp-core to 1.1.1 or later.
In 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.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| io.modelcontextprotocol.sdk:mcp-core | Maven | < 0.18.3 | 0.18.3 |
| io.modelcontextprotocol.sdk:mcp-core | Maven | = 1.0.0 | 1.0.1 |
| io.modelcontextprotocol.sdk:mcp-core | Maven | = 1.1.0 | 1.1.1 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- HighJava-SDK has a DNS Rebinding Vulnerabilityio.modelcontextprotocol.sdk:mcp-core
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.