{"id":"CVE-2025-64762","published":"2025-11-21T01:29:22Z","modified":"2025-11-24T18:09:43Z","title":"authkit-nextjs may let session cookies be cached in CDNs","vendor":"workos","product":"authkit-nextjs","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8,"severity":"HIGH","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00393,"percentile":0.34222,"provenance":"source"},"cwes":[{"id":"CWE-524","name":"Use of Cache Containing Sensitive Information"}],"references":[{"url":"https://github.com/workos/authkit-nextjs/security/advisories/GHSA-p8pf-44ff-93gf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/workos/authkit-nextjs/commit/94cf438124993abb0e7c19dac64c3cb5724a15ea","tags":["x_refsource_MISC"]},{"url":"https://github.com/workos/authkit-nextjs/releases/tag/v2.11.1","tags":["x_refsource_MISC"]}],"priority":{"score":12.4,"factors":[{"name":"EPSS percentile","points":6.84},{"name":"CVSS severity","points":5.6}]},"vendorSlug":"workos","affectedVersions":[{"vendor":"workos","product":"authkit-nextjs","versions":["< 2.11.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-11-24T17:03:08.522780Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@workos-inc/authkit-nextjs","vulnerableRanges":["<2.11.1"],"patched":["2.11.1"],"from":["GHSA-p8pf-44ff-93gf"],"provenance":"source"}],"summary":{"text":"A flaw in the authkit-nextjs library for Next.js, the WorkOS AuthKit helper package for authentication and session management, causes authenticated responses to omit anti-caching headers. In CDN-cached deployments, this can cause session tokens to be stored in cached responses and served to other users. An attacker with network access can obtain session tokens from cached responses without authentication or user interaction, provided CDN caching is enabled in the environment. Applications deployed on Vercel are not affected unless they manually set cache headers on authenticated paths.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:01Z"},"euvd":{"id":"EUVD-2025-198354","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-workos-authkit-nextjs-cve-2024-29901","parents":[{"from":"CVE-2024-29901","to":"CVE-2025-64762","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/session.ts"],"commits":["https://github.com/workos/authkit-nextjs/commit/6c3f4f3179d66cbb15de3962792083ff3b244a01","https://github.com/workos/authkit-nextjs/commit/94cf438124993abb0e7c19dac64c3cb5724a15ea"],"basis":"shared function","functions":["updateSession"]}]},{"from":"CVE-2024-51752","to":"CVE-2025-64762","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/session.ts"],"commits":["https://github.com/workos/authkit-nextjs/commit/15a332632f7560b03cc6d8cc8da24fd2ac931da7","https://github.com/workos/authkit-nextjs/commit/94cf438124993abb0e7c19dac64c3cb5724a15ea"],"basis":"shared function","functions":["updateSession"]}]}]}}