CWE-525Weakness · CWE-525

CVE-2025-48947

HIGH · 7.7 CVSS v4.0 Published 2025-06-04
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
84/100
Remediation priority · High
Remotely reachable No privileges

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The Auth0 Next.js SDK versions 4.0.1 through 4.6.0 fail to set proper Cache-Control headers on responses containing the __session cookie, allowing CDNs and edge caches to store these sensitive authentication cookies. An attacker with access to cached responses could potentially retrieve valid session tokens.

MitigationUpgrade auth0/nextjs-auth0 to version 4.6.1 or later, which adds the missing Cache-Control headers to prevent cookie caching by CDN/edge layers.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
Authentication
X
User interaction
P
Scope
X

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify the installed version of the auth0/nextjs-auth0 package
    Run 'npm list @auth0/nextjs-auth0' or check your package.json dependencies for the @auth0/nextjs-auth0 version entry
    Affected if The version listed is between 4.0.1 and 4.6.0 inclusive
  2. Confirm the application uses Auth0 session handling
    Check if your application initializes the Auth0 provider (typically in pages/api/auth/[...auth0].js or app/api/auth/[...auth0]/route.ts) and look for the __session cookie being set in responses
    Affected if The application uses @auth0/nextjs-auth0 and creates sessions that result in the __session cookie being sent to clients
  3. Inspect Cache-Control headers on authenticated responses
    Log into the application and capture a response that includes the __session cookie (such as after authentication). Use browser DevTools Network tab or a proxy to view response headers. Look for the Cache-Control header value
    Affected if The response containing __session cookie either lacks a Cache-Control header entirely, or the Cache-Control header does not include 'no-store', 'no-cache', or 'private' directives to prevent caching
  4. Verify if a CDN or edge caching layer is in use
    Check your deployment configuration (Vercel, Netlify, Cloudflare, AWS CloudFront, etc.) or reverse proxy setup to determine if responses pass through any caching layer before reaching the client
    Affected if A CDN, edge function, or caching proxy is configured in front of the Next.js application and the __session cookie-bearing responses pass through it

Your environment is affected if you have @auth0/nextjs-auth0 version 4.0.1 through 4.6.0 installed, your application uses Auth0 sessions (the __session cookie), and responses containing that cookie lack proper no-store/no-cache Cache-Control directives, especially if a CDN or edge cache sits in front of your application.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade auth0/nextjs-auth0 to version 4.6.1 or later, which adds the missing Cache-Control headers to prevent cookie caching by CDN/edge layers.

Recommended fix High confidence

auth0/nextjs-auth0 v4.6.1

  1. Update the auth0/nextjs-auth0 package to version 4.6.1 or later by running npm install auth0@^4.6.1 or yarn add auth0@^4.6.1
  2. After upgrading, verify that the application compiles and runs without errors
  3. Test authentication flows to ensure sessions and cookie handling work correctly after the update

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing4.0 h
  • Review / QA2.0 h
10.0 hours of engineering $1,720
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,752.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-48947 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-48947 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data