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-6907

CVE-2026-6907: Django Information Disclosure Vulnerability

CVE-2026-6907 is an information disclosure flaw in Django's caching middleware that can expose private data. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Published: May 7, 2026

CVE-2026-6907 Overview

CVE-2026-6907 is an information exposure vulnerability [CWE-524] in the Django web framework. The flaw resides in django.middleware.cache.UpdateCacheMiddleware, which incorrectly caches responses to requests whose Vary header contains an asterisk (*). According to HTTP caching semantics, a Vary: * value signals that the response varies on factors not captured by request headers and must not be served from a shared cache. Django stored these responses anyway, allowing private data intended for a single user to be returned to other clients. The issue affects Django 6.0 before 6.0.5 and Django 5.2 before 5.2.14. Earlier unsupported series including 5.0.x, 4.1.x, and 3.2.x may also be affected.

Critical Impact

Cached responses for requests with Vary: * can leak per-user data to unauthorized requesters sharing the cache.

Affected Products

  • Django 6.0 before 6.0.5
  • Django 5.2 before 5.2.14
  • Earlier unsupported series (5.0.x, 4.1.x, 3.2.x) potentially affected

Discovery Timeline

  • 2026-05-05 - Django publishes security release crediting Ahmad Sadeddin for reporting the issue
  • 2026-05-05 - CVE-2026-6907 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-6907

Vulnerability Analysis

The vulnerability lies in how UpdateCacheMiddleware evaluates the Vary response header before storing a response. RFC 7234 defines Vary: * as a signal that the response depends on request attributes outside the header set, and shared caches must treat such responses as uncacheable. Django's middleware did not honor this directive. It generated a cache key and persisted the response in the configured cache backend, then served it to subsequent requests matching the constructed key.

When a view sets Vary: * to indicate per-user content, the cached payload may contain authenticated session data, personal information, or authorization-specific output. A second user issuing a request that maps to the same cache key receives the prior user's response. The vulnerability is classified under [CWE-524] (Use of Cache Containing Sensitive Information).

Root Cause

The middleware's caching decision logic checked for the presence of Vary headers but did not exclude entries containing the wildcard token. The fix updates the cache key generation and storage path to skip caching when Vary: * is present, aligning Django with HTTP cache control semantics.

Attack Vector

Exploitation requires the target application to enable UpdateCacheMiddleware and to serve responses that include Vary: *. An attacker submits a request that produces the same cache key as a victim's prior request and receives the cached response containing the victim's data. The attack is network-reachable, requires no privileges, and depends on the application's caching configuration and traffic patterns.

No public proof-of-concept exploit code is available. Refer to the Django Weblog Security Update for vendor technical details.

Detection Methods for CVE-2026-6907

Indicators of Compromise

  • User reports of seeing another account's data, profile information, or session-specific content on cached pages
  • Cache backend entries (Redis, Memcached, database cache) containing responses generated for views that emit Vary: *
  • Unexpected Set-Cookie or authenticated content appearing in responses to anonymous or unrelated users

Detection Strategies

  • Audit Django projects for use of django.middleware.cache.UpdateCacheMiddleware or the @cache_page decorator combined with views that set Vary: *
  • Inspect response headers in production traffic logs for Vary: * paired with cache hit indicators such as X-Cache: HIT or stored cache keys
  • Run pip show django or parse requirements.txt and lockfiles to identify deployments running versions below 6.0.5 or 5.2.14

Monitoring Recommendations

  • Enable structured logging on the cache backend and alert on entries whose stored headers contain Vary: *
  • Monitor application error trackers and customer support channels for cross-user data exposure reports
  • Track package inventories with software composition analysis to flag vulnerable Django versions across services

How to Mitigate CVE-2026-6907

Immediate Actions Required

  • Upgrade Django to 6.0.5 or 5.2.14 depending on the deployed series
  • Inventory all services running unsupported Django releases (5.0.x, 4.1.x, 3.2.x) and migrate them to a supported, patched version
  • Invalidate existing cache backends after patching to purge any sensitive responses stored under the vulnerable behavior

Patch Information

The Django project released fixed versions on 2026-05-05. Apply Django==6.0.5 or Django==5.2.14. Full release notes are available in the Django Security Release Notes and the Django Weblog Security Update.

Workarounds

  • Remove django.middleware.cache.UpdateCacheMiddleware and FetchFromCacheMiddleware from MIDDLEWARE until upgrading
  • Avoid emitting Vary: * in views handled by the cache middleware, or wrap such views with @never_cache
  • Configure upstream reverse proxies or CDNs to strip cache storage when Vary: * is observed in origin responses
bash
# Upgrade Django to a patched version
pip install --upgrade "Django>=6.0.5,<6.1"  # for the 6.0 series
pip install --upgrade "Django>=5.2.14,<5.3" # for the 5.2 series

# Flush the cache after upgrading (example for Django's cache framework)
python manage.py shell -c "from django.core.cache import cache; cache.clear()"

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.03%

  • 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-524
  • Technical References
  • Django Announcements Group
  • Vendor Resources
  • Django Security Release Notes

  • Django Weblog Security Update
  • Related CVEs
  • CVE-2026-35192: 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