CVE-2025-64762 authkit-nextjs may let session cookies be cached in CDNs
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
Description
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| workos authkit-nextjs | < 2.11.1; = < 2.11.1 | 2.11.1 | Fixed |
| workos-inc @workos-inc/authkit-nextjs(npm) | < 2.11.1; <= 2.11.0 | 2.11.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| workos-inc @workos-inc/authkit-nextjs(npm) | <= 2.11.0 | No fix listed |
| workos authkit-nextjs | = < 2.11.1 | No fix listed |
| workos authkit-nextjs | < 2.11.1 | 2.11.1 |
| workos-inc @workos-inc/authkit-nextjs(npm) | < 2.11.1 | 2.11.1 |
References
- https://github.com/workos/authkit-nextjs/security/advisories/GHSA-p8pf-44ff-93gf patch third-party-advisory vendor-advisory
- https://github.com/workos/authkit-nextjs/commit/94cf438124993abb0e7c19dac64c3cb5724a15ea patch
- https://github.com/workos/authkit-nextjs/releases/tag/v2.11.1 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product