The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-48947

CVE-2025-48947: Auth0 Next.js SDK Info Disclosure Flaw

CVE-2025-48947 is an information disclosure vulnerability in Auth0 Next.js SDK where session cookies may be cached by CDNs due to missing Cache-Control headers. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-48947 Overview

A session cookie caching vulnerability has been identified in the Auth0 Next.js SDK that could allow sensitive __session cookies to be cached by CDNs due to missing Cache-Control headers. This Information Exposure vulnerability affects applications using the NextJS-Auth0 SDK versions 4.0.1 through 4.6.0 when combined with CDN or edge caching configurations that cache responses containing the Set-Cookie header.

Critical Impact

Attackers could potentially access cached session cookies from CDN edge nodes, leading to session hijacking and unauthorized access to user accounts across affected applications.

Affected Products

  • Auth0 Next.js SDK versions 4.0.1 through 4.6.0
  • Next.js applications using auth0.middleware with CDN or edge caching
  • Applications where Cache-Control headers are not properly set for sensitive responses

Discovery Timeline

  • June 4, 2025 - CVE-2025-48947 published to NVD
  • June 5, 2025 - Last updated in NVD database

Technical Details for CVE-2025-48947

Vulnerability Analysis

This vulnerability falls under CWE-525 (Use of Web Browser Cache Containing Sensitive Information). The core issue stems from the auth0.middleware component failing to include appropriate Cache-Control headers when setting __session cookies in HTTP responses.

When an application uses the Auth0 Next.js SDK for authentication, the middleware generates session cookies upon successful authentication. Under normal circumstances, these cookies should be treated as sensitive data and explicitly marked as non-cacheable. However, in affected versions, the absence of proper Cache-Control directives means that intermediary caching layers—particularly CDNs and edge servers—may store these responses.

The vulnerability requires three preconditions to be exploitable: the application must use NextJS-Auth0 SDK versions 4.0.1 to 4.6.0, the infrastructure must include CDN or edge caching that caches responses with Set-Cookie headers, and Cache-Control headers must not be properly configured for sensitive authentication responses.

Root Cause

The root cause is the omission of Cache-Control headers in responses generated by auth0.middleware when setting session cookies. The middleware implementation in versions 4.0.1 through 4.6.0 does not programmatically add headers such as Cache-Control: no-store or Cache-Control: private, no-cache to responses that include the __session cookie. This oversight allows caching infrastructure to treat these responses as cacheable content.

Attack Vector

The attack vector operates over the network and requires an attacker to have access to cached responses from a CDN or edge caching layer. The exploitation scenario involves an attacker accessing cached authentication responses that contain valid session cookies. If a user authenticates through the affected application and the response is cached at the CDN level, subsequent requests to the same endpoint could potentially serve the cached response—including the session cookie—to other users or allow an attacker with CDN cache access to retrieve these sensitive tokens.

The attack is considered to have a present attack complexity requirement due to the specific infrastructure conditions that must be met. User interaction is required as a legitimate user must first authenticate to generate the cacheable session response.

Detection Methods for CVE-2025-48947

Indicators of Compromise

  • Unexpected session tokens appearing in CDN cache logs or edge server storage
  • Multiple users receiving identical session identifiers
  • Anomalous authentication patterns showing the same session being used from disparate geographic locations
  • CDN access logs showing cached responses for authentication endpoints containing Set-Cookie headers

Detection Strategies

  • Audit CDN and edge caching configurations for authentication-related endpoints
  • Review HTTP response headers from auth0.middleware endpoints for missing Cache-Control directives
  • Implement monitoring for duplicate session cookie values across different user requests
  • Scan application dependencies for Auth0 Next.js SDK versions between 4.0.1 and 4.6.0

Monitoring Recommendations

  • Enable logging of Cache-Control headers on all authentication-related responses
  • Monitor CDN cache hit ratios for authentication endpoints—unexpected cache hits may indicate misconfiguration
  • Set up alerts for session anomalies such as geographic impossibility or concurrent usage from multiple IPs
  • Regularly audit cached content at CDN edge nodes for sensitive authentication data

How to Mitigate CVE-2025-48947

Immediate Actions Required

  • Upgrade @auth0/nextjs-auth0 to version 4.6.1 or later immediately
  • Review and invalidate CDN caches that may contain cached session cookies
  • Audit existing user sessions and consider forced re-authentication for sensitive applications
  • Verify that Cache-Control headers are properly set on all authentication responses

Patch Information

Auth0 has released version 4.6.1 of the Next.js SDK which addresses this vulnerability by ensuring proper Cache-Control headers are included in responses that set session cookies. Users should upgrade by running their package manager's update command. For detailed information about the fix, refer to the GitHub Security Advisory.

Workarounds

  • Configure CDN or edge caching to exclude responses containing Set-Cookie headers from being cached
  • Implement custom middleware to add Cache-Control: no-store, private headers to authentication responses
  • Configure cache bypass rules for all authentication-related routes (e.g., /api/auth/*)
  • Use CDN cache key configurations that prevent caching of personalized or authenticated content
bash
# Example CDN configuration to prevent caching of Set-Cookie responses
# For Cloudflare Page Rules or similar CDN configurations:
# Path: /api/auth/*
# Cache Level: Bypass
# Edge TTL: 0

# For nginx reverse proxy configuration:
location /api/auth/ {
    add_header Cache-Control "no-store, no-cache, must-revalidate, private" always;
    proxy_pass http://upstream;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechAuth0

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-525
  • Technical References
  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English