{"id":"CVE-2025-48947","aliases":["CVE-2025-48947","GHSA-f3fg-mf2q-fj3f"],"related":[],"kind":"vulnerability","state":"published","title":"NextJS-Auth0 SDK Vulnerable to CDN Caching of Session Cookies","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"**Overview**\nIn Auth0 Next.js SDK versions 4.0.1 to 4.6.0, __session cookies set by auth0.middleware may be cached by CDNs due to missing Cache-Control headers.\n\n**Am I Affected?**\nYou are affected by this vulnerability if you meet the following preconditions:\n\n1. Applications using the NextJS-Auth0 SDK, versions between 4.0.1 to 4.6.0,\n2. Applications using CDN or edge caching that caches responses with the Set-Cookie header.\n3. If the Cache-Control header is not properly set for sensitive responses.\n\n**Fix**\nUpgrade auth0/nextjs-auth0 to v4.6.1.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El SDK de Auth0 Next.js es una librería para implementar la autenticación de usuarios en aplicaciones Next.js. En las versiones 4.0.1 a 4.6.0 del SDK de Auth0 Next.js, las cookies `__session` establecidas por auth0.middleware podrían ser almacenadas en caché por las CDN debido a la falta de encabezados Cache-Control. Se deben cumplir tres requisitos para que una persona se vea afectada por la vulnerabilidad: aplicaciones que utilizan el SDK de NextJS-Auth0 (versiones entre la 4.0.1 y la 4.6.0), aplicaciones que utilizan CDN o caché perimetral que almacena en caché las respuestas con el encabezado Set-Cookie, y si el encabezado Cache-Control no está configurado correctamente para respuestas sensibles. Los usuarios deben actualizar auth0/nextjs-auth0 a la versión 4.6.1 para recibir un parche.","source":"nvd"}],"published":"2025-06-04T20:14:44.369Z","modified":"2026-06-17T09:30:32.030Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"HIGH"}],"cwes":["CWE-525"],"affected":[{"ranges":[{"version":">= 4.0.1, < 4.6.1","status":"affected"}],"vendor":"auth0","product":"nextjs-auth0","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.1","status":"affected","fixed":"4.6.1"}],"ecosystem":"npm","package":"@auth0/nextjs-auth0","purl":"pkg:npm/%40auth0/nextjs-auth0","source":"ghsa"}],"references":[{"url":"https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-f3fg-mf2q-fj3f","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48947","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/auth0/nextjs-auth0/commit/12a62ca596db3b0827b39a4b865b882423e7cb1e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/auth0/nextjs-auth0","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-06-04T20:49:52.962Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-48947","url":"https://www.cve.org/CVERecord?id=CVE-2025-48947","licence":"CVE Terms of Use","modified":"2025-06-04T20:50:02.568Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f3fg-mf2q-fj3f","url":"https://github.com/advisories/GHSA-f3fg-mf2q-fj3f","licence":"CC-BY-4.0","modified":"2025-06-04T22:57:21.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-48947","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48947","licence":"Public domain","modified":"2026-06-17T09:30:32.030Z"}],"updatedAt":"2026-11-25T22:58:58.764Z","epss":{"score":0.00439,"percentile":0.39919,"date":"2026-12-01T12:00:22.000Z"}}