CVE-2025-48947: @auth0/nextjs auth0 NextJS-Auth0 SDK Vulnerable To CDN Vulnerability

HIGH
Advisory Identifier: GHSA-f3fg-mf2q-fj3f
CWE-525
Published
Advisory Summary

CVE-2025-48947 is a HIGH nextjs-auth0 sdk vulnerable to cdn vulnerability (CWE-525: Use of Web Browser Cache Containing Sensitive Information) affecting @auth0/nextjs auth0 libraries in the npm ecosystem. The issue involves nextjs-auth0 sdk vulnerable to cdn caching of session cookies. Remediation is available by upgrading affected packages to version 4.6.1.

CVE-2025-48947 at a Glance

CVE Identifier CVE-2025-48947
GHSA Identifier GHSA-f3fg-mf2q-fj3f
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-525: Use of Web Browser Cache Containing Sensitive Information
Affected Product @auth0/nextjs auth0
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-48947

To remediate this vulnerability, upgrade all affected @auth0/nextjs auth0 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@auth0/nextjs-auth0 fixed: 4.6.1
npm install @auth0/nextjs-auth0@4.6.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @auth0/nextjs-auth0

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-48947, inspect your project dependencies using npm:

npm ls @auth0/nextjs-auth0

Analyze the terminal output to locate any version of @auth0/nextjs auth0 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.6.1), your application is affected.

Note: The npm ls @auth0/nextjs-auth0 command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-525: Use of Web Browser Cache Containing Sensitive Information, where the web application does not use an appropriate caching policy that specifies the extent to which each web page and associated form fields should be cached. In @auth0/nextjs auth0, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

**Overview** In 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. **Am I Affected?** You are affected by this vulnerability if you meet the following preconditions: 1. Applications using the NextJS-Auth0 SDK, versions between 4.0.1 to 4.6.0, 2. Applications using CDN or edge caching that caches responses with the Set-Cookie header. 3. If the Cache-Control header is not properly set for sensitive responses. **Fix** Upgrade auth0/nextjs-auth0 to v4.6.1.

CVE-2025-48947 Affected @auth0/nextjs auth0 Versions

1 component(s)
Fixed Versions:
4.6.1
Product / Package Ecosystem Affected Versions Fixed Version
@auth0/nextjs-auth0
npm
≥ 4.0.1
< 4.6.1
4.6.1

References

Frequently Asked Questions

What is CVE-2025-48947?
CVE-2025-48947 is a security vulnerability in @auth0/nextjs auth0 involving NextJS-Auth0 SDK Vulnerable to CDN Caching of Session Cookies under CWE-525: Use of Web Browser Cache Containing Sensitive Information.
Which @auth0/nextjs auth0 versions are affected?
Affected versions include releases prior to 4.6.1 across affected packages: @auth0/nextjs-auth0.
What version fixes CVE-2025-48947?
Upgrading to 4.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @auth0/nextjs-auth0 affected?
Yes, @auth0/nextjs-auth0 is affected in releases prior to 4.6.1. Upgrade your dependency to 4.6.1 or later.
What CWE is associated with CVE-2025-48947?
CVE-2025-48947 is classified under CWE-525: Use of Web Browser Cache Containing Sensitive Information (The web application does not use an appropriate caching policy that specifies the extent to which each web page and associated form fields should be cached.).
How can I check npm dependencies for CVE-2025-48947?
Run the dependency tree command: 'npm ls @auth0/nextjs-auth0'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f3fg-mf2q-fj3f",
  "modified" : "2025-06-04T22:57:21Z",
  "published" : "2025-06-04T21:24:52Z",
  "aliases" : [ "CVE-2025-48947" ],
  "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.",
  "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@auth0/nextjs-auth0"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.1"
      }, {
        "fixed" : "4.6.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.6.0"
    }
  } ],
  "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"
  } ],
  "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"
  }
}