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

CVE-2026-48587: Django Information Disclosure Vulnerability

CVE-2026-48587 is an information disclosure vulnerability in Django that allows attackers to read cached responses through whitespace-padded Vary headers. This article covers technical details, affected versions, and mitigation.

Published: June 4, 2026

CVE-2026-48587 Overview

CVE-2026-48587 affects Django versions 5.2 before 5.2.15 and 6.0 before 6.0.6. The flaw resides in django.utils.cache.has_vary_header(), which fails to strip leading or trailing whitespace from Vary response header values before comparison. Remote attackers can read cached responses by issuing requests to URLs whose responses contain whitespace-padded Vary header values. The issue is classified under [CWE-1023] (Incomplete Comparison with Missing Factors). Earlier, unsupported Django series such as 5.0.x, 4.1.x, and 3.2.x were not evaluated and may also be affected. Django credits Navid Rezazadeh for reporting the issue.

Critical Impact

Remote attackers can retrieve cached HTTP responses intended for other clients, exposing potentially sensitive content through Django's cache middleware.

Affected Products

  • Django 5.2 before 5.2.15
  • Django 6.0 before 6.0.6
  • Unsupported series (5.0.x, 4.1.x, 3.2.x) potentially affected but not evaluated

Discovery Timeline

  • Vulnerability reported by Navid Rezazadeh
  • 2026-06-03 - CVE-2026-48587 published to NVD
  • 2026-06-03 - Django publishes security release notes
  • 2026-06-03 - Last updated in NVD database

Technical Details for CVE-2026-48587

Vulnerability Analysis

Django's cache framework uses the Vary HTTP response header to determine which request headers influence cache key generation. The helper function django.utils.cache.has_vary_header() checks whether a specific header name appears in the Vary value before deciding cache behavior. The function compares header names without normalizing surrounding whitespace. When a response sets a Vary value padded with spaces, the comparison fails to match the expected header name. The cache layer then treats the response as not varying on that header and serves cached content to requesters that should have received distinct responses. This allows an unauthenticated remote attacker to read cached responses that were generated for other request contexts.

Root Cause

The root cause is incomplete string comparison in has_vary_header(). Header field values in HTTP allow optional whitespace around list elements per RFC 7230, but Django's comparison logic does not call strip() on tokens parsed from the Vary header. The mismatch between RFC-compliant header formatting and Django's strict equality check creates a cache key confusion condition tracked as [CWE-1023].

Attack Vector

The attack vector is network-based and requires no authentication. An attacker issues HTTP requests to URLs whose application responses include a Vary header containing whitespace-padded values, such as Vary: " Cookie" or Vary: "Accept-Encoding ,Cookie". Because Django fails to recognize the listed headers, the response is cached without proper key segmentation. Subsequent attacker requests receive cached responses originally generated for other clients, exposing content that should have been isolated.

No verified public proof-of-concept code is available. Refer to the Django Blog on Security Releases for vendor technical details.

Detection Methods for CVE-2026-48587

Indicators of Compromise

  • Application responses containing Vary header values with leading or trailing whitespace around comma-separated tokens
  • Unexpected delivery of authenticated or personalized content to anonymous cache requests
  • Cache hit ratios deviating from baseline on endpoints that set dynamic Vary headers

Detection Strategies

  • Audit application and middleware code for any logic that constructs Vary headers programmatically, especially through string concatenation
  • Inspect HTTP responses in staging and production for malformed Vary headers using web application logging or reverse proxy capture
  • Review Django version inventory across services to identify instances running 5.2.0 through 5.2.14 or 6.0.0 through 6.0.5

Monitoring Recommendations

  • Log full Vary response headers at the reverse proxy or CDN layer and alert on values containing whitespace anomalies
  • Monitor cache backends (Memcached, Redis) for keys that map to a smaller-than-expected variant set on personalized endpoints
  • Correlate authenticated session identifiers with cache hits to detect cross-client response delivery

How to Mitigate CVE-2026-48587

Immediate Actions Required

  • Upgrade Django to 5.2.15 or 6.0.6 in all environments running the affected branches
  • Decommission or upgrade unsupported Django series (5.0.x, 4.1.x, 3.2.x) since these were not evaluated and may be vulnerable
  • Invalidate existing cache entries after patching to remove any previously poisoned responses

Patch Information

Django released fixed versions 5.2.15 and 6.0.6 on June 3, 2026. The patches normalize whitespace in Vary header tokens before comparison in django.utils.cache.has_vary_header(). Patch details and release notes are available in the Django Security Release Notes and announced via the Django Announcements Group.

Workarounds

  • Sanitize Vary headers at a reverse proxy or middleware layer by stripping whitespace from each token before the response reaches Django's cache framework
  • Disable Django's UpdateCacheMiddleware and FetchFromCacheMiddleware on endpoints that emit dynamic Vary headers until patching is complete
  • Restrict caching to endpoints with statically defined Vary values controlled by the application
bash
# Upgrade Django to a patched release
pip install --upgrade "Django>=5.2.15,<6.0"
# or for the 6.0 branch
pip install --upgrade "Django>=6.0.6"

# Verify installed version
python -c "import django; print(django.get_version())"

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechDjango

  • SeverityLOW

  • CVSS Score2.3

  • 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-1023
  • Technical References
  • Django Security Release Notes

  • Django Announcements Group

  • Django Blog on Security Releases
  • Related CVEs
  • CVE-2026-8404: Django Information Disclosure Vulnerability

  • CVE-2026-7666: Django Information Disclosure Vulnerability

  • CVE-2026-35193: Django Information Disclosure Vulnerability

  • CVE-2026-6873: Django Auth Bypass 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