CVE-2026-35568
Java-SDK has a DNS Rebinding Vulnerability
Description
Summary
The java-sdk contains a DNS rebinding vulnerability. This vulnerability allows an attacker to access a locally or network-private java-sdk MCP server via a victims browser that is either local, or network adjacent.
This allows an attacker to make any tool call to the server as if they were a locally running MCP connected AI agent.
Details
Prior to 1.0.0 no Origin header validation was occurring, in violation of the MCP specification. Base Protocol > Transports: 2.0.1 Security Warning:
1: Servers MUST validate the Origin header on all incoming connections to prevent DNS rebinding attacks.
When the web server serving HTTP traffic to the MCP server does not perform standard CORS checks, a DNS rebinding attack is possible.
Some default server configurations and frameworks come with embedded Origin header validation. MCP servers built using those are not vulnerable to this issue. For example, the following are NOT vulnerable:
- Spring AI
Impact
Any developer connecting to a malicious website can inadvertently allow an attacker to make tool calls to local or private-network MCP servers.
Workarounds
Users can mitigate this risk by:
- Running the MCP server behind a reverse proxy (like Nginx or HAProxy) configured to strictly validate the
HostandOriginheaders. - Using a framework that inherently enforces strict CORS and Origin validation (such as Spring AI).
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.modelcontextprotocol.sdk » mcp-core | < 1.0.0 | 1.0.0 |
Blast radius
45% of the dependent artifacts (296) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 211 |
| 2 hops | 857 |
| 3 hops | 1,754 |
| 4 hops | 1,812 |
| 5 hops | 1,049 |
| 6 hops | 283 |
Most used dependents
- org.springframework.ai » spring-ai-client-chat286 usages
- io.modelcontextprotocol.sdk » mcp176 usages
- io.agentscope » agentscope-core96 usages
- org.springframework.ai » spring-ai-starter-model-openai87 usages
- org.springframework.ai » spring-ai-mcp78 usages
- org.springframework.ai » spring-ai-starter-mcp-server-webmvc78 usages
- io.modelcontextprotocol.sdk » mcp-json-jackson272 usages
- com.embabel.agent » embabel-agent-api67 usages
- org.springframework.ai » spring-ai-starter-mcp-server55 usages
- org.springframework.ai » spring-ai-starter-model-anthropic51 usages
- io.agentscope » agentscope-harness46 usages
- io.jaiclaw » jaiclaw-spring-boot-starter43 usages
- org.springframework.ai » spring-ai-autoconfigure-model-chat-client42 usages
- com.google.adk » google-adk41 usages
- com.yahoo.vespa » container-dev40 usages
Computed from the dependency graph of build 20261201.0702 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-35568 | nvd.nist.gov |
| Package | modelcontextprotocol/java-sdk | github.com |
| Web | modelcontextprotocol/java-sdk advisory GHSA-8jxr-pr72-r468 | github.com |
| Web | modelcontextprotocol/java-sdk release v1.0.0 | github.com |
