Skip to main content

Django CVE-2026-6907

| EUVDEUVD-2026-27382 LOW
Use of Cache Containing Sensitive Information (CWE-524)
2026-05-05 DSF
2.3
CVSS 4.0 · Vendor: DSF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Request endpoint with Vary: *
  2. Exploit
    Middleware caches response
  3. Execution
    Attacker requests same endpoint
  4. Impact
    Cached private data served to attacker

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V3 - Web Frontend Security Cache-Control for sensitive pages
Exploitation Conditions

The vulnerability is triggered when all of the following conditions are met: UpdateCacheMiddleware is enabled in Django's middleware stack (non-default but commonly used in production setups), an application endpoint returns a response with a Vary header containing the literal value '*', the cache backend is configured to actually store items (memcached, Redis, database cache), and at least two separate HTTP requests reach the same endpoint in quick succession. The vulnerability does NOT affect applications that: do not use UpdateCacheMiddleware, explicitly set Cache-Control: no-cache or Cache-Control: no-store headers, use external reverse proxies as the sole caching layer, or only serve non-sensitive cacheable content. Authentication is not required to access the cached data-any user making a request to the affected endpoint after another user has cached their response can retrieve the private data.

Impact

The CVSS v4.0 score of 2.3 reflects low severity with several mitigating factors. Attack Vector is Network (AV:N) and Complexity is Low (AC:L), indicating remote accessibility without special setup. However, the crucial limiting factors are: Temporal Attack (AT:P) suggesting passive or probabilistic exploitation timing requirements, User Interaction required (UI:P) indicating reliance on specific user actions or cache state conditions, and only Low Confidentiality Impact (VC:L). No integrity or availability impact is possible. The combination of AT:P and UI:P indicates this is not a straightforward network-accessible vulnerability despite AV:N-exploitation requires either waiting for specific cache state conditions to align or triggering specific application sequences. No EPSS, KEV, or POC data was provided; absence of CISA KEV listing and the university-grade CVSS score suggest this is not actively exploited at scale. The real risk depends heavily on application architecture: applications using Django's built-in cache middleware with authentication-aware responses are at higher risk than those using external cache proxies or disabling caching for authenticated content. This appears to be a medium-priority fix suitable for standard patching cycles rather than emergency response.

Exploit ScenarioDerived

An attacker or unauthenticated user makes a request to a Django application endpoint that returns content marked with Vary: *. UpdateCacheMiddleware incorrectly stores this response in the cache. When a second user (potentially with different authentication or session state) makes a similar request, the cached response-containing the first user's private data-is served instead of generating a fresh response. The timing and conditions depend on cache eviction policies and request patterns, making exploitation probabilistic rather than deterministic.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 05, 2026

Django's UpdateCacheMiddleware incorrectly caches HTTP responses containing a Vary header with an asterisk value in versions 6.0 before 6.0.5 and 5.2 before 5.2.14, causing private user data to be cached and served to other users. The vulnerability has low confidentiality impact and requires user interaction (UI:P) combined with passive attack timing, making real-world exploitation dependent on specific cache timing conditions and application architecture.

RemediationAI

Upgrade Django to version 6.0.5 or later for 6.0.x deployments, or version 5.2.14 or later for 5.2.x deployments. The vendor has released patched versions available at https://www.djangoproject.com/weblog/2026/may/05/security-releases/. For deployments unable to upgrade immediately, implement cache exclusion rules at the middleware level: configure the cache middleware to skip caching for responses with a Vary header containing '*' by creating a custom middleware wrapper that inspects the Vary header before UpdateCacheMiddleware processes the response, or disable UpdateCacheMiddleware entirely and use a reverse proxy cache (nginx, Varnish) with proper HTTP semantic handling. Alternative compensating control: restrict access to Django's cache backend at the network level and ensure authentication tokens are marked with Cache-Control: private, though this does not address responses already marked with Vary: *. Unsupported versions (5.0.x, 4.1.x, 3.2.x) should prioritize upgrading to a supported series, as backports are not available.

Affected VersionsENISA

Django 5.2 <5.2.14
Django 6.0 <6.0.5

Affected Packages

pypi django fix: 5.2.14, 6.0.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in Django's UpdateCacheMiddleware component, which implements HTTP caching middleware following RFC 7234 cache control semantics. The Vary header specifies which request headers should be considered when determining cache key equivalence; per RFC 7231, a Vary value of '*' indicates that the response varies based on factors outside standard headers and should never be cached. Django's cache middleware fails to recognize this special case and caches responses marked with Vary: *, treating them as cacheable when they should be skipped. This violates HTTP caching semantics defined in CWE-524 (Incorrect Parsing). The issue affects the middleware layer that sits between the application and the HTTP cache backend, potentially causing sensitive per-user data (session tokens, CSRF tokens, personal information) to be stored in the cache layer and retrieved by subsequent requests from different users.

Know when Django gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (DSF) PRIMARY 2.3 LOW
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

Primary rating from Vendor (DSF) · only source for this CVE.

CVSS VectorVendor: DSF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
May 05, 2026 - 16:22 NVD
MEDIUM LOW
CVSS changed
May 05, 2026 - 16:22 NVD
4.3 (MEDIUM) 2.3 (LOW)

DescriptionCVE.org

An issue was discovered in 6.0 before 6.0.5 and 5.2 before 5.2.14. django.middleware.cache.UpdateCacheMiddleware erroneously caches requests where the Vary header contained an asterisk ('*'). This can lead to private data being stored and served. 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 would like to thank Ahmad Sadeddin for reporting this issue.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 12 pypi packages depend on django (12 direct, 0 indirect)

Ecosystem-wide dependent count for version 5.2.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Django

View all
CVE-2021-23336 MEDIUM POC
5.9 Feb 15

The package python/cpython from 0 and before 3.6.13, from 3.7.0 and before 3.7.10, from 3.8.0 and before 3.8.8, from 3.9

CVE-2017-12794 MEDIUM POC
6.1 Sep 07

In Django 1.10.x before 1.10.8 and 1.11.x before 1.11.5, HTML autoescaping was disabled in a portion of the template for

CVE-2022-34265 CRITICAL POC
9.8 Jul 04

An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. Rated critical severity (CVSS 9.8), this vulne

CVE-2021-35042 CRITICAL POC
9.8 Jul 02

Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input

CVE-2019-19844 CRITICAL POC
9.8 Dec 18

Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover. Rated critical severity (CVSS 9.8

CVE-2026-61594 CRITICAL POC
9.1 Sep 16

An authentication/authorization bypass in the djust Python live-view framework (versions prior to 1.0.7) lets unauthenti

CVE-2026-61599 HIGH POC
8.8 Sep 16

Unauthenticated arbitrary Python module import in djust before 1.0.7 lets any client that can reach the WebSocket or SSE

CVE-2020-9402 HIGH POC
8.8 Mar 05

Django 1.11 before 1.11.29, 2.2 before 2.2.11, and 3.0 before 3.0.4 allows SQL Injection if untrusted data is used as a

CVE-2016-6186 MEDIUM POC
6.1 Aug 05

Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/j

CVE-2026-93456 HIGH POC
8.4 Sep 18

Forged content modification in django-page-cms through 2.0.13 lets unauthenticated remote attackers exploit five CSRF-ex

CVE-2026-61593 HIGH POC
8.1 Sep 16

Cross-site request forgery in djust's Server-Sent-Events transport affects all versions prior to 1.0.7 and allows a cros

CVE-2026-61590 HIGH POC
7.4 Sep 16

Unauthenticated remote attackers can read live Django view and session state and invoke server-side handlers through dju

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy