A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2026-35192

CVE-2026-35192: Django Information Disclosure Vulnerability

CVE-2026-35192 is an information disclosure vulnerability in Django that allows attackers to steal user sessions via cached pages. This article covers the technical details, affected versions, impact, and mitigation.

Published: May 7, 2026

CVE-2026-35192 Overview

CVE-2026-35192 is a session disclosure vulnerability in the Django web framework. The flaw affects Django 6.0 before 6.0.5 and Django 5.2 before 5.2.14. When the SESSION_SAVE_EVERY_REQUEST setting is True, response headers do not vary on cookies if a session is unmodified. This caching behavior allows a remote attacker to capture another user's session cookie from a cached public page. Earlier unsupported Django releases such as 5.0.x, 4.1.x, and 3.2.x were not evaluated and may also be affected. The issue is tracked under [CWE-539: Use of Persistent Cookies Containing Sensitive Information].

Critical Impact

Attackers can hijack authenticated user sessions by retrieving cached responses that contain another user's session cookie.

Affected Products

  • Django 6.0 versions prior to 6.0.5
  • Django 5.2 versions prior to 5.2.14
  • Unsupported Django series including 5.0.x, 4.1.x, and 3.2.x (not evaluated)

Discovery Timeline

  • 2026-05-05 - Django releases security advisory crediting Cantina for reporting the issue
  • 2026-05-05 - CVE-2026-35192 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-35192

Vulnerability Analysis

The vulnerability stems from incorrect HTTP Vary header handling in Django's session middleware. When SESSION_SAVE_EVERY_REQUEST is enabled, Django re-saves the session on every request to refresh expiry timestamps. However, if the session content itself is not modified during a request, Django fails to mark the response as varying on the Cookie header. Downstream caches such as reverse proxies, content delivery networks, or Django's own cache middleware may then store the response, including any Set-Cookie headers. A subsequent unauthenticated visitor requesting the same public URL receives the cached response, which contains the original user's session cookie. The attacker replays this cookie to impersonate the victim.

Root Cause

The defect lies in the conditional logic that decides whether to add a Vary: Cookie header to outgoing responses. The middleware only triggered the Vary annotation when the session was modified, ignoring the case where SESSION_SAVE_EVERY_REQUEST=True causes a Set-Cookie header to be emitted regardless of modification state. See the Django Security Release Notes for details.

Attack Vector

Exploitation requires a deployment that caches public pages and a victim user who is authenticated and visits one of those pages. After the victim's response is stored in the shared cache, the attacker requests the same URL and receives the cached Set-Cookie header containing the victim's sessionid. The attacker then submits this cookie to authenticated endpoints. The attack vector is network-based and requires user interaction from the victim, but no privileges or authentication on the attacker's side. Refer to the Django Weblog Security Releases for vendor analysis.

Detection Methods for CVE-2026-35192

Indicators of Compromise

  • Multiple distinct client IP addresses reusing the same sessionid cookie value within a short window
  • Cached HTTP responses for public URLs containing Set-Cookie: sessionid=... headers without an accompanying Vary: Cookie header
  • Authenticated activity originating from geographic locations or user agents inconsistent with the legitimate session owner

Detection Strategies

  • Audit cache server logs and CDN configurations for cached responses that include Set-Cookie headers
  • Inventory Django deployments and identify any with SESSION_SAVE_EVERY_REQUEST = True combined with upstream caching
  • Correlate session identifiers against client fingerprints in application logs to surface session reuse anomalies

Monitoring Recommendations

  • Alert on session cookies appearing in responses served from cache hit paths
  • Track session-to-IP binding deviations and flag rapid IP changes for the same session token
  • Continuously verify that Django middleware emits Vary: Cookie on responses that include session cookies

How to Mitigate CVE-2026-35192

Immediate Actions Required

  • Upgrade Django to 6.0.5 or 5.2.14 immediately on all affected hosts
  • Invalidate existing sessions and force users to re-authenticate after patching
  • Purge any shared HTTP caches and CDN edge caches that may contain leaked Set-Cookie headers

Patch Information

The Django project released fixed versions 6.0.5 and 5.2.14 on May 5, 2026. The patches restore the Vary: Cookie header on responses where a session cookie may be set, preventing shared caches from storing personalized responses. Installation details are available in the Django Security Release Notes and the Django Weblog Security Releases.

Workarounds

  • Set SESSION_SAVE_EVERY_REQUEST = False if session expiry refresh on every request is not strictly required
  • Configure upstream caches and CDNs to strip Set-Cookie headers from cached responses or to bypass cache for responses containing session cookies
  • Apply explicit @vary_on_cookie or cache_control(private=True) decorators on views that may set session cookies
bash
# Configuration example: pip upgrade and Django settings hardening
pip install --upgrade "Django>=5.2.14,<6.0" # or "Django>=6.0.5"

# settings.py - reduce exposure if patching is delayed
SESSION_SAVE_EVERY_REQUEST = False
CACHE_MIDDLEWARE_KEY_PREFIX = "public_only"

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechDjangoproject Django

  • SeverityLOW

  • CVSS Score2.3

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/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
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-539
  • Technical References
  • Django Announce Group
  • Vendor Resources
  • Django Security Release Notes

  • Django Weblog Security Releases
  • Related CVEs
  • CVE-2026-6907: Django Information Disclosure Vulnerability

  • CVE-2026-5766: Djangoproject Django DOS Vulnerability

  • CVE-2026-25673: Djangoproject Django DoS Vulnerability

  • CVE-2026-1312: Djangoproject Django SQLi Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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