GHSA-p8pf-44ff-93gf

Suggest an improvement
Source
https://github.com/advisories/GHSA-p8pf-44ff-93gf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/11/GHSA-p8pf-44ff-93gf/GHSA-p8pf-44ff-93gf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-p8pf-44ff-93gf
Aliases
Published
2025-11-20T21:29:16Z
Modified
2025-11-21T15:32:21Z
Severity
  • 8.0 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U CVSS Calculator
Summary
authkit-nextjs may let session cookies be cached in CDNs
Details

In authkit-nextjs version 2.11.0 and below, authenticated responses do not defensively apply anti-caching headers. In environments where CDN caching is enabled, this can result in session tokens being included in cached responses and subsequently served to multiple users.

Next.js applications deployed on Vercel are unaffected unless they manually enable CDN caching by setting cache headers on authenticated paths.

Impact

This vulnerability may lead to session caching, potentially allowing unauthorized users to obtain another user’s session token. The severity depends on deployment configuration, caching policy, and whether authenticated routes are inadvertently cached.

Patches

Patched in authkit-nextjs 2.11.1, which applies anti-caching headers to all responses behind authentication.

Notes

Authentication middleware should set anti-caching headers for authenticated routes as a defense in depth measure, but cannot guarantee these headers will not be overwritten elsewhere in the application. We recommend the following: - Review your application code, middleware, and infrastructure configuration to ensure the Cache-Control headers set for authenticated paths prevent inappropriate caching - For application paths that require caching, do not allow user-specific or sensitive authenticated information to be included in the response data or headers

Database specific
{
    "nvd_published_at": "2025-11-21T02:15:44Z",
    "cwe_ids": [
        "CWE-524"
    ],
    "github_reviewed_at": "2025-11-20T21:29:16Z",
    "severity": "HIGH",
    "github_reviewed": true
}
References

Affected packages

npm / @workos-inc/authkit-nextjs

Package

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

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.11.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/11/GHSA-p8pf-44ff-93gf/GHSA-p8pf-44ff-93gf.json"
last_known_affected_version_range
"<= 2.11.0"