Origin Validation Error Affecting io.modelcontextprotocol.sdk:mcp-core package, versions [,0.18.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-IOMODELCONTEXTPROTOCOLSDK-15928845
  • published8 Apr 2026
  • disclosed7 Apr 2026
  • creditJonathan Leitschuh

Introduced: 7 Apr 2026

CVE-2026-35568  (opens in a new tab)
CWE-346  (opens in a new tab)

How to fix?

Upgrade io.modelcontextprotocol.sdk:mcp-core to version 0.18.0 or higher.

Overview

Affected versions of this package are vulnerable to Origin Validation Error through the lack CORS checks (Host and Origin header validation) on incoming HTTP connections. An attacker can gain unauthorized access to local or private-network servers by tricking a victim into visiting a malicious website, which then issues requests to the server as if originating from a trusted source.

Workaround

This vulnerability can be mitigated by running the server behind a reverse proxy (such as Nginx or HAProxy) configured to strictly validate the Host and Origin headers, or by using a framework that enforces strict CORS and Origin validation.

CVSS Base Scores

version 4.0
version 3.1