Intel

AIKIDO-2026-344432

@modelcontextprotocol/sdk is vulnerable to Incorrect Authorization

CVE-2026-111771Published Oct 9, 2026
October 9, 2026

68

CVE Score

Medium

Incorrect Authorization

Are you affected? Scan for Free

TL;DR

The SDK server accepts any verified bearer token without checking which audience it was issued for. When one authorization server issues tokens for multiple services, servers using requireBearerAuth() or verifyBearerToken() accept a token issued for another service. The fix adds an expectedResource option and makes verifyAccessToken() return the token's audience, so the server can reject tokens meant for another service.

How do I fix this?

Upgrade the @modelcontextprotocol/sdk library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your HTTP server uses requireBearerAuth() or verifyBearerToken() with an authorization server that also issues tokens for other services.

Versions

1.6.0 - 1.31.0

Fixed in 1.32.0

Background info

@modelcontextprotocol/sdk is vulnerable to Incorrect Authorization in versions 1.6.0 - 1.31.0.

Links

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea