CVE-2026-34237: Mcp core Security Vulnerability Vulnerability
MODERATECVE-2026-34237 is a MODERATE (CVSS 6.1) security vulnerability vulnerability (CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains) affecting Mcp core libraries in the Maven ecosystem. The issue involves *). Remediation is available by upgrading affected packages to version 1.0.1, 1.1.1, 0.18.3.
CVE-2026-34237 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2026-34237
To remediate this vulnerability, upgrade all affected Mcp core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>io.modelcontextprotocol.sdk</groupId>
<artifactId>mcp-core</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>io.modelcontextprotocol.sdk</groupId>
<artifactId>mcp-core</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>io.modelcontextprotocol.sdk</groupId>
<artifactId>mcp-core</artifactId>
<version>0.18.3</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=io.modelcontextprotocol.sdk
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-34237, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.modelcontextprotocol.sdk
Analyze the terminal output to locate any version of Mcp core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.modelcontextprotocol.sdk command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains, where the product uses a web-client protection mechanism such as a content security policy (csp) or cross-domain policy file, but the policy includes untrusted domains with which the web client is allowed to communicate. In Mcp core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-34237 Affected Mcp core Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.modelcontextprotocol.sdk:mcp-core
|
Maven |
≥ 1.0.0
< 1.0.1
All 1 versions
1.0.0
|
1.0.1
|
|
io.modelcontextprotocol.sdk:mcp-core
|
Maven |
≥ 1.1.0
< 1.1.1
All 1 versions
1.1.0
|
1.1.1
|
|
io.modelcontextprotocol.sdk:mcp-core
|
Maven |
< 0.18.3
|
0.18.3
|
References
Frequently Asked Questions
What is CVE-2026-34237?
Which Mcp core versions are affected?
What version fixes CVE-2026-34237?
Is mcp-core affected?
What is the CVSS score of CVE-2026-34237?
What CWE is associated with CVE-2026-34237?
How can I check Maven dependencies for CVE-2026-34237?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hv2w-8mjj-jw22",
"modified" : "2026-06-09T18:39:02Z",
"published" : "2026-03-30T17:26:44Z",
"aliases" : [ "CVE-2026-34237" ],
"summary" : "MCP Java SDK has a Hardcoded Wildcard CORS (Access-Control-Allow-Origin: *)",
"details" : "### 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",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.modelcontextprotocol.sdk:mcp-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.0.1"
} ]
} ],
"versions" : [ "1.0.0" ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.modelcontextprotocol.sdk:mcp-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0"
}, {
"fixed" : "1.1.1"
} ]
} ],
"versions" : [ "1.1.0" ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.modelcontextprotocol.sdk:mcp-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.18.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/modelcontextprotocol/java-sdk/security/advisories/GHSA-hv2w-8mjj-jw22"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34237"
}, {
"type" : "WEB",
"url" : "https://cheatsheetseries.owasp.org/cheatsheets/HTTP_Headers_Cheat_Sheet.html#access-control-allow-origin"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/modelcontextprotocol/java-sdk"
}, {
"type" : "WEB",
"url" : "https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletSseServerTransportProvider.java#L289"
}, {
"type" : "WEB",
"url" : "https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletStreamableServerTransportProvider.java#L525"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-942" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-30T17:26:44Z",
"nvd_published_at" : "2026-03-31T16:16:32Z"
}
}