Auth0 Next.js SDK
cpe:2.3:a:auth0:nextjs-auth0:*:*:*:*:node.js:*:*
- >= 4.0.1, < 4.5.1
A vulnerability exists in the Auth0 Next.js SDK, specifically in versions 4.0.1 through 4.5.0. The issue arises because the SDK does not call '.setExpirationTime' when creating a JWE token for the session. Consequently, the JWE lacks an internal expiration claim. While the session cookie may expire or be deleted, the JWE remains valid, potentially allowing for unauthorized session persistence.
Exploitation of this vulnerability allows for JWE tokens to remain valid even after associated session cookies have expired or been cleared, leading to unauthorized access.
To reproduce this vulnerability, use Auth0 Next.js SDK version 4.0.1 to 4.5.0. Create a session that generates a JWE token. After the session cookie expires or is cleared, the JWE token can still be used, demonstrating that the token was not properly invalidated.
Upgrade to Auth0 Next.js SDK version 4.5.1 or later.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.