Incorrect Authorization Affecting mcp package, versions [1.10.0,1.30.0)[2.0.0,2.2.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (31st 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 Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MCP-21756856
  • published27 Oct 2026
  • disclosed27 Oct 2026
  • creditUnknown

Introduced: 27 Oct 2026

NewCVE-2026-116684  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade mcp to version 1.30.0, 2.2.0 or higher.

Overview

mcp is a Model Context Protocol SDK

Affected versions of this package are vulnerable to Incorrect Authorization via the BearerAuthBackend middleware, which fails to validate the resource indicator (RFC 8707 audience) of incoming bearer tokens against the server's own resource_server_url. An attacker in possession of a valid token issued for a different resource server can present that token and gain unauthorized access, bypassing the intended audience restriction.

Note: This is only exploitable if the validate_token_resource option is explicitly set to True in AuthSettings - upgrading alone does not enable the check, as the new setting defaults to off.

CVSS Base Scores

version 4.0
version 3.1