Intel

AIKIDO-2025-10459

@modelcontextprotocol/sdk is vulnerable to Insufficient Session Expiration

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

65

CVE Score

Medium

Insufficient Session Expiration

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.

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.

Versions

1.6.0 - 1.15.0

Fixed in 1.15.1

Background info

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

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