{"id":"GHSA-f3fg-mf2q-fj3f","summary":"NextJS-Auth0 SDK Vulnerable to CDN Caching of Session Cookies","details":"**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.","aliases":["CVE-2025-48947"],"modified":"2025-06-04T22:57:21Z","published":"2025-06-04T21:24:52Z","database_specific":{"cwe_ids":["CWE-525"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2025-06-04T21:24:52Z","nvd_published_at":"2025-06-04T21:15:40Z"},"references":[{"type":"WEB","url":"https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-f3fg-mf2q-fj3f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48947"},{"type":"WEB","url":"https://github.com/auth0/nextjs-auth0/commit/12a62ca596db3b0827b39a4b865b882423e7cb1e"},{"type":"PACKAGE","url":"https://github.com/auth0/nextjs-auth0"}],"affected":[{"package":{"name":"@auth0/nextjs-auth0","ecosystem":"npm","purl":"pkg:npm/%40auth0/nextjs-auth0"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.1"},{"fixed":"4.6.1"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 4.6.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-f3fg-mf2q-fj3f/GHSA-f3fg-mf2q-fj3f.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}