CVE-2026-34237 | MCP Java SDK (io.modelcontextprotocol.sdk) (wildcard CORS):io.modelcontextprotocol.sdk:mcp-core (maven) | Medium | 6.1
| Field |
Value |
| CVE / NVD |
CVE-2026-34237 |
| EPSS score |
0.002220000 (FIRST EPSS, 2026-06-30) |
| Date (index) |
2026-03-31 |
| Affected product (index) |
MCP Java SDK (io.modelcontextprotocol.sdk) (wildcard CORS):io.modelcontextprotocol.sdk:mcp-core (maven) |
| GHSA ID |
GHSA-hv2w-8mjj-jw22 |
| OWASP MCP Top 10 (2025) |
MCP07 — Insufficient Authentication & Authorization |
| Published / disclosed |
2026-03-30 |
| Ecosystem |
maven |
| Component |
io.modelcontextprotocol.sdk:mcp-core |
| CVSS score |
6.1 MEDIUM CVSS v3.1 (NVD) |
| CWE |
CWE-942 |
| Affected versions |
< 1.0.1, 1.1.0 |
| Fixed versions |
1.0.1, 1.1.1 |
| Fix status |
Patched |
| Exploit status |
Public advisory |
CVE Breakdown
What is the vulnerability?
MCP Java SDK has a Hardcoded Wildcard CORS (Access-Control-Allow-Origin: *)
Attack prerequisites / exposure
A victim generally needs to be running the affected HTTP/SSE MCP service and to browse attacker-controlled web content. Risk is highest when the service is unauthenticated, bound to localhost, or otherwise reachable from a browser context.
CVE is because of what bug?
Hardcoded wildcard CORS
MCP-specific impact / why it matters
Browser clients from any origin may reach local/private Java SDK servers. Because the flaw sits in shared MCP plumbing, downstream servers and developer tooling can inherit the risk at scale.
Where was the bug? (source + snippet)
- Source repository: https://github.com/modelcontextprotocol/java-sdk
- Code reference 1: https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletSseServerTransportProvider.java#L289
- Code reference 2: https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletStreamableServerTransportProvider.java#L525
Add a minimal vulnerable code snippet here after reviewing the linked source locations.
The fix hardens HTTP transport trust checks by validating origin and host assumptions and by moving the default behavior toward safer localhost and browser-facing deployments.
Upstream fix (open source)
- https://github.com/modelcontextprotocol/java-sdk/security/advisories/GHSA-hv2w-8mjj-jw22
Workarounds / mitigations
- Upgrade to
1.0.1, 1.1.1 or later as the primary remediation.
- Avoid unauthenticated localhost HTTP/SSE MCP deployments and prefer stdio or authenticated transports when possible.
- Restrict allowed origins / host validation and do not expose browser-reachable MCP endpoints casually.
Exploit / PoC
A public advisory or disclosure exists, but a direct PoC reference is not yet captured in this repository.
Detection / verification
- Inventory deployments still matching the affected version range:
< 1.0.1, 1.1.0.
- Identify MCP services using HTTP/SSE on localhost or browser-reachable interfaces without authentication or origin protections.
- Review browser-to-localhost request patterns and unexpected tool invocations originating from web sessions.
Patch
https://github.com/modelcontextprotocol/java-sdk/security/advisories/GHSA-hv2w-8mjj-jw22
Reference links
- Code reference 1: https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletSseServerTransportProvider.java#L289
- Code reference 2: https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletStreamableServerTransportProvider.java#L525
- GitHub Advisory search: https://github.com/advisories?query=CVE-2026-34237
- OSV search: https://osv.dev/list?q=CVE-2026-34237
- Tenable: https://www.tenable.com/cve/CVE-2026-34237
- Snyk search: https://security.snyk.io/search?type=vuln&q=CVE-2026-34237
- GitLab advisory search: https://advisories.gitlab.com/search/?q=CVE-2026-34237