{"id":"CVE-2025-64762","aliases":["CVE-2025-64762","GHSA-p8pf-44ff-93gf"],"related":[],"kind":"vulnerability","state":"published","title":"authkit-nextjs may let session cookies be cached in CDNs","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-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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nNext.js applications deployed on Vercel are unaffected **unless** they manually enable CDN caching by setting cache headers on authenticated paths.\n\n### Impact\nThis vulnerability may lead to session caching, potentially allowing unauthorized users to obtain another user’s session token. The severity depends on deployment configuration, caching policy, and whether authenticated routes are inadvertently cached.\n\n### Patches\nPatched in `authkit-nextjs` 2.11.1, which applies anti-caching headers to all responses behind authentication.\n\n### Notes\nAuthentication middleware should set anti-caching headers for authenticated routes as a defense in depth measure, but cannot guarantee these headers will not be overwritten elsewhere in the application. We recommend the following:\n  - Review your application code, middleware, and infrastructure configuration to ensure the Cache-Control headers set for authenticated paths prevent inappropriate caching\n  - For application paths that require caching, do not allow user-specific or sensitive authenticated information to be included in the response data or headers","format":"markdown","source":"ghsa"},{"lang":"es","text":"La biblioteca AuthKit para Next.js proporciona asistentes convenientes para la autenticación y la gestión de sesiones utilizando WorkOS y AuthKit con Next.js. En la versión 2.11.0 y anteriores de authkit-nextjs, las respuestas autenticadas no aplican de forma defensiva encabezados anti-caché. En entornos donde el almacenamiento en caché de CDN está habilitado, esto puede resultar en que los tokens de sesión se incluyan en respuestas almacenadas en caché y posteriormente se sirvan a múltiples usuarios. Las aplicaciones Next.js desplegadas en Vercel no se ven afectadas a menos que habiliten manualmente el almacenamiento en caché de CDN configurando encabezados de caché en rutas autenticadas. Parcheado en authkit-nextjs 2.11.1, que aplica encabezados anti-caché a todas las respuestas detrás de la autenticación.","source":"nvd"}],"published":"2025-11-20T21:29:16.000Z","modified":"2026-10-07T21:10:00.200Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","score":8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","score":8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-524"],"affected":[{"ranges":[{"version":"< 2.11.1","status":"affected"}],"vendor":"workos","product":"authkit-nextjs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.11.1"}],"ecosystem":"npm","package":"@workos-inc/authkit-nextjs","purl":"pkg:npm/%40workos-inc/authkit-nextjs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.11.1"}],"vendor":"workos","product":"authkit-nextjs","cpe":"cpe:2.3:a:workos:authkit-nextjs:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/workos/authkit-nextjs/security/advisories/GHSA-p8pf-44ff-93gf","tags":["patch","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/workos/authkit-nextjs/commit/94cf438124993abb0e7c19dac64c3cb5724a15ea","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/workos/authkit-nextjs/releases/tag/v2.11.1","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64762","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/workos/authkit-nextjs","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-11-24T17:03:08.522Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-64762","url":"https://www.cve.org/CVERecord?id=CVE-2025-64762","licence":"CVE Terms of Use","modified":"2025-11-24T18:09:43.225Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p8pf-44ff-93gf","url":"https://github.com/advisories/GHSA-p8pf-44ff-93gf","licence":"CC-BY-4.0","modified":"2025-11-21T15:32:21.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-64762","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64762","licence":"Public domain","modified":"2026-10-07T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:07.887Z","epss":{"score":0.00393,"percentile":0.3558,"date":"2026-12-01T12:00:22.000Z"}}