CVE-2026-34237: MCP Java SDK has a Hardcoded Wildcard CORS (Access-Control-Allow-Origin: *)

Published Mar 30, 2026
·
Updated

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/streamablehttp.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/HTTPHeadersCheatSheet.html#access-control-allow-origin

Other sources

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.

MITRE

MCP Java SDK is the official Java SDK for Model Context Protocol servers and clients. Prior to versions 1.0.1 and 1.1.1, there is a hardcoded wildcard CORS vulnerability. This issue has been patched in versions 1.0.1 and 1.1.1.

NVD

Affected Software

4 affected componentsFixes available
maven/io.modelcontextprotocol.sdk:mcp-core=1.1.0
1.1.1
maven/io.modelcontextprotocol.sdk:mcp-core<1.0.0
1.0.1
Lfprojects Mcp Java Sdk<1.0.1
Lfprojects Mcp Java Sdk=1.1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/io.modelcontextprotocol.sdk:mcp-core to a version that resolves this vulnerability.

    Fixed in 1.1.1
  2. Upgrade

    Upgrade maven/io.modelcontextprotocol.sdk:mcp-core to a version that resolves this vulnerability.

    Fixed in 1.0.1
  3. Upgrade

    Upgrade modelcontextprotocol/java-sdk to a version that resolves this vulnerability.

    Fixed in 0.83.0
  4. Upgrade

    Upgrade modelcontextprotocol/java-sdk to a version that resolves this vulnerability.

    Fixed in 1.0.1
  5. Upgrade

    Upgrade modelcontextprotocol/java-sdk to a version that resolves this vulnerability.

    Fixed in 1.1.1
  6. Configuration

    Do not emit a hardcoded wildcard CORS policy from the MCP Java SDK transport layer; if cross-origin access is required, implement a CORS filter at the servlet filter or Spring Security layer instead of using Access-Control-Allow-Origin: *.

    MCP Java SDK transport (servlet/Spring Security) Access-Control-Allow-Origin = not "*"

Event History

Mar 30, 2026
Advisory Published
via GitHub·05:26 PM
Data Sourced
via GitHub·05:26 PM
DescriptionSeverityWeaknessAffected Software
Mar 31, 2026
CVE Published
via MITRE·03:40 PM
Data Sourced
via MITRE·03:40 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
RemedyAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-34237?

CVE-2026-34237 is classified as a high severity vulnerability due to the hardcoded wildcard CORS implementation.

2

How do I fix CVE-2026-34237?

To fix CVE-2026-34237, upgrade to version 1.1.1 or to version 1.0.1 of the affected package.

3

What does CVE-2026-34237 affect?

CVE-2026-34237 affects the io.modelcontextprotocol.sdk:mcp-core package versions 1.1.0 and lower.

4

What is a hardcoded wildcard CORS vulnerability like CVE-2026-34237?

A hardcoded wildcard CORS vulnerability allows any domain to access resources, posing security risks such as data exposure.

5

When was CVE-2026-34237 disclosed?

CVE-2026-34237 was disclosed as part of a GitHub advisory regarding security issues in the Java SDK.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203