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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| modelcontextprotocol | java-sdk | >= 1.0.0, < 1.0.1, >= 1.1.0, < 1.1.1, < 0.18.3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | io.modelcontextprotocol.sdk:mcp-core | >= 1.0.0, < 1.0.1 | 1.0.1 | GHSA-hv2w-8mjj-jw22 |
| Maven | io.modelcontextprotocol.sdk:mcp-core | >= 1.1.0, < 1.1.1 | 1.1.1 | GHSA-hv2w-8mjj-jw22 |
| Maven | io.modelcontextprotocol.sdk:mcp-core | < 0.18.3 | 0.18.3 | GHSA-hv2w-8mjj-jw22 |
References
- https://github.com/modelcontextprotocol/java-sdk/security/advisories/GHSA-hv2w-8mjj-jw22
- 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