# CVE-2025-48947: NextJS-Auth0 SDK Vulnerable to CDN Caching of Session Cookies

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.7
- **CVSS:** 7.7 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Passive; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: Low; Integrity impact on other systems: Low; Availability impact on other systems: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.76% (percentile 51, 2026-11-26)
- **CWE:** CWE-525
- **Aliases:** GHSA-f3fg-mf2q-fj3f
- **Published:** 2025-06-04T20:14:44.369Z
- **Modified:** 2026-06-17T09:30:32.030Z

## Who should check

- Projects that depend on npm package @auth0/nextjs-auth0 (\>= 4.0.1, \< 4.6.1)
- Anyone running nextjs-auth0 \>= 4.0.1, \< 4.6.1

## Description

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.

## Affected and fixed versions

- npm `@auth0/nextjs-auth0`: affected \>= 4.0.1, \< 4.6.1; fixed 4.6.1 (osv)
- nextjs-auth0: \>= 4.0.1, \< 4.6.1 (cvelist)

## Mitigation

- Upgrade @auth0/nextjs-auth0 to 4.6.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-48947. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-48947.md
Affected: @auth0/nextjs-auth0 >= 4.0.1, < 4.6.1
Fixed in: 4.6.1

Steps:
1. Search this machine and project for @auth0/nextjs-auth0 (npm), nextjs-auth0: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-48947 being exploited?

There is no confirmed exploitation: CVE-2025-48947 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.76% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-48947?

High: CVSS 7.7 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-48947?

@auth0/nextjs-auth0 \>= 4.0.1, \< 4.6.1.

### Is there a fix for CVE-2025-48947?

Yes. Fixed in 4.6.1. Upgrade @auth0/nextjs-auth0 to 4.6.1 or later.

### How do I check if I'm affected by CVE-2025-48947?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/auth0/nextjs-auth0/security/advisories/GHSA-f3fg-mf2q-fj3f>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-48947>
- patch: <https://github.com/auth0/nextjs-auth0/commit/12a62ca596db3b0827b39a4b865b882423e7cb1e>
- other: <https://github.com/auth0/nextjs-auth0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-48947>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-f3fg-mf2q-fj3f> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-48947> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-48947>
