@modelcontextprotocol/sdk is vulnerable to Insufficient Session Expiration
65
CVE Score
Medium
Insufficient Session Expiration
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.
Upgrade the @modelcontextprotocol/sdk library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
1.6.0 - 1.15.0
Fixed in 1.15.1@modelcontextprotocol/sdk is vulnerable to Insufficient Session Expiration in versions 1.6.0 - 1.15.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.