CVE-2026-34237
March 30, 2026
Summary 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 Attack Scenario An 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. Comparison with python-sdk No Access-Control-Allow-Origin header is emitted by either Python transport. The browser's default same-origin policy remains in full effect. https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/server/sse.py https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/server/streamable_http.py Recommendation 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. Resources - https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html#access-control-allow-origin
Affected Packages
https://github.com/modelcontextprotocol/java-sdk.git (GITHUB):
Affected version(s) >=v0.1.0 <v1.0.1Fix Suggestion:
Update to version v1.0.1https://github.com/modelcontextprotocol/java-sdk.git (GITHUB):
Affected version(s) =v1.1.0 <v1.1.1Fix Suggestion:
Update to version v1.1.1https://github.com/modelcontextprotocol/java-sdk.git (GITHUB):
Affected version(s) =v1.1.0 <v1.1.1Fix Suggestion:
Update to version v1.1.1https://github.com/modelcontextprotocol/java-sdk.git (GITHUB):
Affected version(s) >=v0.1.0 <v1.0.1Fix Suggestion:
Update to version v1.0.1io.modelcontextprotocol.sdk:mcp-core (JAVA):
Affected version(s) >=0.13.0 <1.0.1Fix Suggestion:
Update to version 1.0.1io.modelcontextprotocol.sdk:mcp-core (JAVA):
Affected version(s) =1.1.0 <1.1.1Fix Suggestion:
Update to version 1.1.1io.modelcontextprotocol.sdk:mcp-core (JAVA):
Affected version(s) =1.1.0 <1.1.1Fix Suggestion:
Update to version 1.1.1io.modelcontextprotocol.sdk:mcp-core (JAVA):
Affected version(s) >=0.13.0 <1.0.1Fix Suggestion:
Update to version 1.0.1Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Permissive Cross-domain Security Policy with Untrusted Domains