---
id: CVE-2025-64762
title: >-
  The AuthKit library for Next.js provides convenient helpers for authentication
  and session management using WorkOS & AuthKit with Next.js
summary: >-
  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-…
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-524
vendor: workos
product: authkit-nextjs
affected:
  - authkit-nextjs < 2.11.1
patched:
  - authkit-nextjs 2.11.1
published: '2025-11-21'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T21:10:00.200'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-64762'
references:
  - url: >-
      https://github.com/workos/authkit-nextjs/commit/94cf438124993abb0e7c19dac64c3cb5724a15ea
    label: security-advisories@github.com
  - url: 'https://github.com/workos/authkit-nextjs/releases/tag/v2.11.1'
    label: security-advisories@github.com
  - url: >-
      https://github.com/workos/authkit-nextjs/security/advisories/GHSA-p8pf-44ff-93gf
    label: security-advisories@github.com
tags:
  - nvd
epss: 0.00369
epssPercentile: 0.28753
ingestedAt: '2026-10-07T21:54:15.069Z'
---

## Overview

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

- `authkit-nextjs < 2.11.1`

## Remediation

Upgrade past the affected range:

- `authkit-nextjs 2.11.1`
