@modelcontextprotocol/sdk is vulnerable to Incorrect Authorization
68
CVE Score
Medium
Incorrect Authorization
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.
Upgrade the @modelcontextprotocol/sdk library to the patch version.
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.
1.6.0 - 1.31.0
Fixed in 1.32.0@modelcontextprotocol/sdk is vulnerable to Incorrect Authorization in versions 1.6.0 - 1.31.0.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.