MCP Java SDK DNS Rebinding Vulnerability Allowing Unauthorized Access to Private Servers

Vulnerability

A DNS rebinding vulnerability has been identified in the MCP Java SDK, prior to version 1.0.0. This vulnerability allows an attacker to access a locally or network-private MCP server through a victim's browser, either local or network-adjacent. Exploitation enables the attacker to make tool calls to the server as if they were a locally running MCP-connected AI agent. The issue arises from a lack of Origin header validation, violating the MCP specification, which requires servers to validate the Origin header on all incoming connections to prevent DNS rebinding attacks.

Impact

Exploitation allows unauthorized access to private or local MCP servers, enabling attackers to make tool calls as if they were a connected AI agent.

Remediation

Users can update to MCP Java SDK version 1.0.0, which addresses the vulnerability by implementing proper Origin header validation. Alternatively, MCP servers can be run behind a reverse proxy that validates the Host and Origin headers, or by using a framework that enforces strict CORS and Origin validation, such as Spring AI.

Added: Apr 7, 2026, 11:26 PM
Updated: Apr 7, 2026, 11:26 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.3
exploitability
6.2
remediation
0.0
relevance
5.4
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.