CVE-2026-34237
JSON

6.1medium

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

Severity
6.1medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.26% (higher than 18% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-hv2w-8mjj-jw22

Description

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.

Affected

Product or packageVersionsReported by
modelcontextprotocol java-sdk>= 1.0.0, < 1.0.1, >= 1.1.0, < 1.1.1, < 0.18.3CVE List
io.modelcontextprotocol.sdk:mcp-core (Maven)from 1.0.0 before 1.0.1, from 1.1.0 before 1.1.1, before 0.18.3GitHub Advisory Database
lfprojects mcp_java_sdkbefore 1.0.1, 1.1.0NVD

All scores

GitHub_M6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-942

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Summary

Hardcoded Wildcard CORS (Access-Control-Allow-Origin: * )

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.

Reference
NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-34237 changed 2026-06-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-hv2w-8mjj-jw22 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-34237 changed 2026-07-24Public domain