Authentication and Session Management Vulnerability in AuthKit for Next.js
CVE-2025-64762
8HIGH
What is CVE-2025-64762?
The AuthKit library, utilized for authentication and session management in Next.js applications, suffers from a significant vulnerability in versions prior to 2.11.1. This vulnerability allows session tokens to inadvertently be cached in environments leveraging CDN caching. As a result, these tokens could be served to unauthorized users, leading to potential session hijacking and exposure of sensitive user data. Applications deployed on Vercel remain unaffected unless CDN caching is manually enabled by setting cache headers on authenticated routes. The vulnerability has been resolved in version 2.11.1, which implements necessary anti-caching headers for all authenticated responses.
Affected Version(s)
authkit-nextjs < 2.11.1
