CVE-2026-48588

Potential exposure of private data via cached Set-Cookie response

Published Jul 7, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
An issue was discovered in Django 6.0 before 6.0.7 and 5.2 before 5.2.16.
`UpdateCacheMiddleware` and the `cache_page()` decorator cache responses that vary on cookies when the incoming request carries unrelated cookies, which allows remote attackers to read private data from the shared cache.
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 Chris Whyland for reporting this issue.

Analysis

AI-generated

Technical impact

Django’s UpdateCacheMiddleware and the cache_page decorator improperly cache responses that should vary based on cookies when an incoming request contains unrelated cookies. As a result, an attacker can cause a private response to be stored in a shared cache and later retrieve that cached content, exposing confidential data to the attacker. This flaw leads to information disclosure and is classified as CWE‑524.

Affected Systems

The vulnerability is present in Django 6.0 prior to 6.0.7 and Django 5.2 prior to 5.2.16. Earlier unsupported Django series, such as 5.0.x, 4.1.x and 3.2.x, were not evaluated but may also be affected if they use UpdateCacheMiddleware or cache_page.

Risk and Exploitability

The CVSS score of 2.3 indicates low severity, while the EPSS score of less than 1% shows a very low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires a remote attacker to send a request with unrelated cookies to a Django application that caches a response, after which the attacker can read the cached content and obtain the unintended private data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Django 6.0.7 or later, or 5.2.16 or later, to apply the vendor patch.
  • Reconfigure caching so that responses containing Set‑Cookie headers are not stored in shared caches, effectively excluding cookie‑based content from being cached.
  • Review and adjust your middleware and cache configuration to ensure that cookie‑dependent responses are not cached and that cache keys correctly reflect cookie state.

Generated by OpenCVE AI on August 1, 2026 at 17:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4802-1 python-django security update
Github GHSA Github GHSA GHSA-3h9f-r86x-qvjx Django: cache middleware may expose private responses when unrelated request cookies are present
History
Type Values Removed Values Added
First Time appeared Djangoproject
Djangoproject django
Vendors & Products Djangoproject
Djangoproject django
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description An issue was discovered in Django 6.0 before 6.0.7 and 5.2 before 5.2.16. `UpdateCacheMiddleware` and the `cache_page()` decorator cache responses that vary on cookies when the incoming request carries unrelated cookies, which allows remote attackers to read private data from the shared cache. 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 Chris Whyland for reporting this issue.
Title Potential exposure of private data via cached Set-Cookie response
Weaknesses CWE-524
References
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 2.3, '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'}

Weaknesses
  • CWE-524

    Use of Cache Containing Sensitive Information

Sources

Status
PUBLISHED
Assigner
DSF
Published
Updated
Jul 7, 2026, 2:59 PM
Reserved
May 21, 2026, 8:50 PM
Status
Analyzed
Published
Jul 7, 2026, 3:16 PM
Modified
Oct 25, 2026, 8:10 PM
Severity
Low
Public date
Jul 7, 2026, 2:00 PM