GHSA-f3fg-mf2q-fj3f

Suggest an improvement
Source
https://github.com/advisories/GHSA-f3fg-mf2q-fj3f
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-f3fg-mf2q-fj3f/GHSA-f3fg-mf2q-fj3f.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-f3fg-mf2q-fj3f
Aliases
Published
2025-06-04T21:24:52Z
Modified
2025-06-04T22:57:21Z
Severity
  • 7.7 (High) CVSS_V4 - 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 Calculator
Summary
NextJS-Auth0 SDK Vulnerable to CDN Caching of Session Cookies
Details

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.

Database specific
{
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-525"
    ],
    "severity": "HIGH",
    "nvd_published_at": "2025-06-04T21:15:40Z",
    "github_reviewed_at": "2025-06-04T21:24:52Z"
}
References

Affected packages

npm / @auth0/nextjs-auth0

Package

Name
@auth0/nextjs-auth0
View open source insights on deps.dev
Purl
pkg:npm/%40auth0/nextjs-auth0

Affected ranges

Type
SEMVER
Events
Introduced
4.0.1
Fixed
4.6.1

Database specific

{
    "last_known_affected_version_range": "<= 4.6.0"
}