Skip to content
HighVulnerability

GHSA-8jxr-pr72-r468: Java-SDK has a DNS Rebinding Vulnerability

Published
Record updated
View JSON
Affected
  • io.modelcontextprotocol.sdk:mcp-core < 1.0.0
Fixed in
1.0.0
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

The java-sdk MCP server contained a DNS rebinding vulnerability because it performed no Origin header validation before version 1.0.0, contrary to the MCP specification. An attacker can use a malicious website opened in a victim's browser to make arbitrary tool calls to a locally or privately networked MCP server, acting as a locally connected AI agent. Servers built on frameworks with built-in Origin validation, such as Spring AI, are not affected.

Mitigation

Fixed in 1.0.0 (Origin validation was absent prior to that release). Workarounds: run the MCP server behind a reverse proxy such as Nginx or HAProxy configured to strictly validate the Host and Origin headers, or use a framework that enforces strict CORS and Origin validation, such as Spring AI.