# CVE-2025-64762: authkit-nextjs may let session cookies be cached in CDNs

> CVE-2025-64762: authkit-nextjs may let session cookies be cached in CDNs. CVSS 9.1 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-64762
Last updated: 2026-10-07T21:10:00Z

- Published: 2025-11-21 01:29 UTC · Updated: 2026-10-07 21:10 UTC · Assigner: GitHub\_M
- CVSS: 9.1 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 0.39%, 33th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-524

## 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.

## Affected vendors and products

- workos: authkit-nextjs

## Tracked companies

- [WorkOS](https://rewindex.com/company/workos.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-64762)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-64762)
- [https://github.com/workos/authkit-nextjs/commit/94cf438124993abb0e7c19dac64c3cb5724a15ea](https://github.com/workos/authkit-nextjs/commit/94cf438124993abb0e7c19dac64c3cb5724a15ea)
- [https://github.com/workos/authkit-nextjs/releases/tag/v2.11.1](https://github.com/workos/authkit-nextjs/releases/tag/v2.11.1)
- [https://github.com/workos/authkit-nextjs/security/advisories/GHSA-p8pf-44ff-93gf](https://github.com/workos/authkit-nextjs/security/advisories/GHSA-p8pf-44ff-93gf)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-64762 · Markdown: https://rewindex.com/cve/CVE-2025-64762.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-64762 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:14:42.446Z
