{"id":"CVE-2025-48947","published":"2025-06-04T20:14:44Z","modified":"2025-06-04T20:50:02Z","title":"NextJS-Auth0 SDK Vulnerable to CDN Caching of Session Cookies","vendor":"auth0","product":"nextjs-auth0","tier":"tail","description":{"text":"The Auth0 Next.js SDK is a library for implementing user authentication in Next.js applications. In Auth0 Next.js SDK versions 4.0.1 through 4.6.0, `__session` cookies set by auth0.middleware may be cached by CDNs due to missing Cache-Control headers. Three preconditions must be met in order for someone to be affected by the vulnerability: Applications using the NextJS-Auth0 SDK, versions between 4.0.1 to 4.6.0, applications using CDN or edge caching that caches responses with the Set-Cookie header, and if the Cache-Control header is not properly set for sensitive responses. Users should upgrade auth0/nextjs-auth0 to v4.6.1 to receive a patch.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00439,"percentile":0.38953,"provenance":"source"},"cwes":[{"id":"CWE-525","name":"Use of Web Browser Cache Containing Sensitive Information"}],"references":[{"url":"https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-f3fg-mf2q-fj3f","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":7.79},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"auth0","affectedVersions":[{"vendor":"auth0","product":"nextjs-auth0","versions":[">= 4.0.1, < 4.6.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-06-04T20:49:52.962448Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@auth0/nextjs-auth0","vulnerableRanges":[">=4.0.1, <4.6.1"],"patched":["4.6.1"],"from":["GHSA-f3fg-mf2q-fj3f"],"provenance":"source"}],"summary":{"text":"The Auth0 Next.js SDK (nextjs-auth0), in versions 4.0.1 through 4.6.0, sets __session cookies via auth0.middleware without Cache-Control headers, so the cookies can end up cached by CDNs or edge caches that store responses carrying Set-Cookie. An attacker with network access can obtain a cached session cookie when the application runs behind such a cache, the cached response is served to them, and the sensitive response lacks proper Cache-Control headers, with user interaction required on the victim's side for the cookie to be cached in the first place.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:59Z"},"euvd":{"id":"EUVD-2025-16914","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-auth0-nextjs-auth0-cve-2025-46344","parents":[{"from":"CVE-2025-46344","to":"CVE-2025-48947","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@auth0/nextjs-auth0","fromFixed":"4.5.1","toFixed":"4.6.1","daysApart":36},{"kind":"same-code","provenance":"machine","files":["src/server/cookies.ts"],"commits":["https://github.com/auth0/nextjs-auth0/commit/a4f061aed02ffa132feca8adfbd11704df17e1c3","https://github.com/auth0/nextjs-auth0/commit/12a62ca596db3b0827b39a4b865b882423e7cb1e"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2025-48947","to":"CVE-2026-40155","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/server/auth-client.ts"],"commits":["https://github.com/auth0/nextjs-auth0/commit/12a62ca596db3b0827b39a4b865b882423e7cb1e","https://github.com/auth0/nextjs-auth0/commit/98c36dc306970c2230ea1a32efef431d29b99978"],"basis":"shared function","functions":["AuthClient"]}]}],"packageHistory":[{"cve":"CVE-2021-32702","published":"2021-06-25","fixed":"1.4.2","kev":false},{"cve":"CVE-2021-43812","published":"2021-12-16","fixed":"1.6.2","kev":false},{"cve":"CVE-2025-46344","published":"2025-04-29","fixed":"4.5.1","kev":false},{"cve":"CVE-2025-48947","published":"2025-06-04","fixed":"4.6.1","kev":false},{"cve":"CVE-2025-67490","published":"2025-12-10","fixed":"4.12.1","kev":false},{"cve":"CVE-2025-67716","published":"2025-12-11","fixed":"4.13.0","kev":false},{"cve":"CVE-2026-40155","published":"2026-04-17","fixed":"4.18.0","kev":false}],"package":"npm:@auth0/nextjs-auth0"}}