Intel

AIKIDO-2025-10459

@modelcontextprotocol/sdk is vulnerable to Insufficient Session Expiration

Insufficient Session Expiration Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 15, 2025

65

Medium Risk

This Affects:

JS@modelcontextprotocol/sdk
1.6.0 - 1.15.0
Fixed in 1.15.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Token Expiration Bypass due to a logic flaw in expiresAt verification. The token validation logic incorrectly bypasses expiration checks when authInfo.expiresAt is set to 0, as the condition !authInfo.expiresAt evaluates to false, skipping the expiration validation entirely. This flaw allows tokens with an expiration time of 0, which should be interpreted as expired or invalid, to be accepted as valid. An attacker could exploit this by crafting or reusing a token with expiresAt: 0 to bypass intended expiration controls, gaining unauthorized persistent access to protected resources.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@modelcontextprotocol/sdk is vulnerable to Insufficient Session Expiration in versions 1.6.0 - 1.15.0.

How to fix this

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