NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

CVE-2026-35568: Java-SDK has a DNS Rebinding Vulnerability

highCVSS 4.0 7.6GHSA-8jxr-pr72-r468

The MCP Java SDK (`io.modelcontextprotocol.sdk:mcp-core`) before 1.0.0 does not validate the Origin header, so a malicious web page can use DNS rebinding to reach a local or private-network MCP server through a visitor's browser and call its tools. Upgrade to mcp-core 1.0.0 or put a validating reverse proxy in front.

Published Apr 7, 2026 · Updated Apr 8, 2026 · Analysis Oct 30, 2026

What an attacker can do

The MCP specification says servers must validate the Origin header on all incoming connections to block DNS rebinding. Before 1.0.0 the Java SDK did not. If the web server hosting the MCP endpoint also does no CORS or Origin checks, an attacker can set up a hostname that first resolves to their own server and then flips to 127.0.0.1 or a private address. The victim's browser, now treating the local MCP server as the same origin as the attacker's page, sends requests to it.

The attacker needs the developer to visit a malicious page while a vulnerable MCP server runs on their machine or on a network the browser can reach. No credentials are needed. They can then make any tool call as if they were a locally connected AI agent: read files, run commands or query systems, depending on the tools the server exposes. The CVSS 4.0 vector reflects the user interaction and high confidentiality and integrity impact.

Some frameworks bring their own Origin validation. The advisory names Spring AI as not vulnerable.

Who is affected

The Maven artifact io.modelcontextprotocol.sdk:mcp-core before 1.0.0, used in MCP servers over HTTP transports whose web server does no Origin or CORS validation. Servers on Spring AI are not vulnerable according to the advisory.

mvn dependency:tree | grep modelcontextprotocol
./gradlew dependencies | grep modelcontextprotocol

io.modelcontextprotocol.sdk:mcp-core

Ecosystem
Maven
Affected
< 1.0.0
Fixed in
1.0.0
Check
mvn dependency:tree -Dincludes=io.modelcontextprotocol.sdk:mcp-core

How to fix it

Upgrade mcp-core to 1.0.0.

If you cannot upgrade, the advisory lists two workarounds: run the MCP server behind a reverse proxy such as Nginx or HAProxy that strictly validates the Host and Origin headers, or use a framework that enforces strict CORS and Origin validation, such as Spring AI.

How to tell if you were hit

Look in the MCP server's access logs for requests whose Origin or Host is an unfamiliar hostname rather than localhost or your own domain, particularly requests that start tool calls. Check for browser-originated traffic hitting an MCP endpoint you expected only agents to use. Beam records agent MCP tool calls, but rebinding calls come from a browser and not an agent, so check the server's own logs first.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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:

  1. Running the MCP server behind a reverse proxy (like Nginx or HAProxy) configured to strictly validate the Host and Origin headers.
  2. Using a framework that inherently enforces strict CORS and Origin validation (such as Spring AI).

Credited to JLLeitschuh.

Questions

Is my Java MCP server affected by CVE-2026-35568?

If it uses mcp-core before 1.0.0 on an HTTP transport and the web server does no Origin validation, yes. Spring AI servers are listed as not vulnerable.

Does the attacker need network access to my server?

No direct access. They use the victim's browser, which can reach a server on localhost or a private network.

What can they do?

Make any tool call the server offers, as if they were a connected local AI agent.

Which version fixes it?

Upgrade io.modelcontextprotocol.sdk:mcp-core to 1.0.0, which is the patched version in the advisory.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Other MCP servers and tools vulnerabilities

All Other MCP servers and tools entries