Skip to main content
CVE-2025-48947VulnerabilityPublished

CVE-2025-48947: nextjs-auth0 · Use of Web Browser Cache Containing Sensitive Information

Affects nextjs-auth0Source CVE Database V5

0

Not known to be exploited · CVSS 7.7 High : upgrade to 4.6.1 soon.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 4.0 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 37% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.6.1
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Upgrade auth0/nextjs-auth0 to 4.6.1.

Affected software

ProductAffectedFixed in
GitHubauth0/nextjs-auth0pkg:github/auth0/nextjs-auth0Other threatsAffected
  • >=4.0.1 <4.6.1
Fixed in
  • 4.6.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. Immediate upgrade of the Auth0 Next.js SDK to version 4.6.1 or later, which includes the fix for proper Cache-Control header settings to prevent caching of sensitive cookies. 2. Review and audit CDN and edge caching configurations to ensure that responses containing authentication cookies or other sensitive headers are never cached. This includes explicitly setting Cache-Control headers such as 'no-store, no-cache, private' on all authentication-related responses. 3. Implement security headers like 'Set-Cookie' with 'HttpOnly' and 'Secure' flags to reduce cookie exposure. 4. Conduct penetration testing and security reviews focusing on caching behavior in the deployment environment. 5. Monitor CDN logs and cache hit/miss patterns for anomalies that could indicate unauthorized access attempts. 6. Educate development and DevOps teams about secure caching practices and the risks of caching authentication tokens. 7. If immediate upgrade is not feasible, consider disabling CDN caching for authentication endpoints as a temporary mitigation. 8. Ensure that session management follows best practices, including short session lifetimes and token invalidation on logout.

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.

References

Community reviews

Loading reviews…