CVE-2025-64762
Workos Authkit-nextjs vulnerability
The AuthKit library for Next.js provides convenient helpers for authentication and session management using WorkOS & AuthKit with Next.js. In authkit-nextjs version 2.11.0 and below, authenticated responses do not defensively apply anti-caching headers. In environments where CDN caching is enabled, this can result in session tokens being included in cached responses and subsequently served to multiple users. Next.js applications deployed on Vercel are unaffected unless they manually enable CDN caching by setting cache headers on authenticated paths. Patched in authkit-nextjs 2.11.1, which applies anti-caching headers to all responses behind authentication.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Authkit-nextjs. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Workos Authkit-nextjs runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/workos/authkit-nextjs/security/advisories/GHSA-p8pf-44ff-93gf
- github.com/workos/authkit-nextjs/commit/94cf438124993abb0e7c19dac64c3cb5724a15ea
- github.com/workos/authkit-nextjs/releases/tag/v2.11.1
- nvd.nist.gov/vuln/detail/CVE-2025-64762
- github.com/advisories/GHSA-p8pf-44ff-93gf
- nvd.nist.gov/vuln/detail/CVE-2025-64762
- cve.org/CVERecord?id=CVE-2025-64762
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.