CVE-2025-48947: @auth0/nextjs auth0 NextJS-Auth0 SDK Vulnerable To CDN Vulnerability
HIGHCVE-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
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.
npm install @auth0/nextjs-auth0@4.6.1
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
CVE-2025-48947 Affected @auth0/nextjs auth0 Versions
1 component(s)| 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?
Which @auth0/nextjs auth0 versions are affected?
What version fixes CVE-2025-48947?
Is @auth0/nextjs-auth0 affected?
What CWE is associated with CVE-2025-48947?
How can I check npm dependencies for CVE-2025-48947?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}