PT-2026-29161 · Unknown · Mcp Java Sdk

Srikanthramu

·

Published

2026-03-30

·

Updated

2026-03-31

·

CVE-2026-34237

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions MCP Java SDK versions prior to 1.0.1 MCP Java SDK versions prior to 1.1.1
Description The MCP Java SDK contains a hardcoded wildcard Cross-Origin Resource Sharing (CORS) configuration, specifically setting Access-Control-Allow-Origin to '*'. This allows cross-origin reads, potentially exposing sensitive information like session IDs via Server-Sent Events (SSE). An attacker-controlled web page can instruct a victim's browser to open a GET request to an internal server endpoint. Because of the wildcard CORS setting, the attacker's page can receive event data, including the session ID, and then use the victim's browser to relay a POST request to that endpoint. The Python SDK does not exhibit this behavior, maintaining the browser's default same-origin policy. The vulnerable code is located in HttpServletSseServerTransportProvider.java at line 289 and HttpServletStreamableServerTransportProvider.java at line 525.
Recommendations For versions prior to 1.0.1, server implementers should add a CORS filter at the servlet filter or Spring Security layer to manage cross-origin access. For versions prior to 1.1.1, server implementers should add a CORS filter at the servlet filter or Spring Security layer to manage cross-origin access.

Exploit

Fix

Weakness Enumeration

Related Identifiers

CVE-2026-34237
GHSA-HV2W-8MJJ-JW22

Affected Products

Mcp Java Sdk