4.9medium
Auth0 NextJS SDK v4 Missing Session Invalidation
- Severity
- 4.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.45% (higher than 40% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pjr6-jx7r-j4r6
Description
The Auth0 Next.js SDK is a library for implementing user authentication in Next.js applications. Versions starting from 4.0.1 and prior to 4.5.1, do not invoke `.setExpirationTime` when generating a JWE token for the session. As a result, the JWE does not contain an internal expiration claim. While the session cookie may expire or be cleared, the JWE remains valid. This issue has been patched in version 4.5.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| auth0 nextjs-auth0 | >= 4.0.1, < 4.5.1 | CVE List |
| @auth0/nextjs-auth0 (npm) | from 4.0.1 before 4.5.1 | GitHub Advisory Database |
All scores
| GitHub_M | 4.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
The Auth0 Next.js SDK is a library for implementing user authentication in Next.js applications. Versions starting from 4.0.1 and prior to 4.5.1, do not invoke `.setExpirationTime` when generating a JWE token for the session. As a result, the JWE does not contain an internal expiration claim. While the session cookie may expire or be cleared, the JWE remains valid. This issue has been patched in version 4.5.1.
GitHub Advisory Database
Overview
Auth0 NextJS v4.0.1 to v4.5.0 does not invoke .setExpirationTime when generating a JWE token for the session. As a result, the JWE does not contain an internal expiration claim. While the session cookie may expire or be cleared, the JWE remains valid.
Am I Affected?
You are affected if you are using Auth0 NextJS SDK v4.
Fix
Upgrade to v4.5.1.
NVD (es)
El SDK Auth0 Next.js es una librería para implementar la autenticación de usuarios en aplicaciones Next.js. Las versiones a partir de la 4.0.1 y anteriores a la 4.5.1 no invocan `.setExpirationTime` al generar un token JWE para la sesión. Por lo tanto, el JWE no contiene una notificación de expiración interna. Aunque la cookie de sesión pueda expirar o borrarse, el JWE sigue siendo válido. Este problema se ha corregido en la versión 4.5.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-46344 changed 2025-04-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pjr6-jx7r-j4r6 changed 2025-04-30 | CC-BY-4.0 |
| NVD | CVE-2025-46344 changed 2026-06-17 | Public domain |