---
id: CVE-2026-6907
aliases:
  - GHSA-5hrc-gvxj-w55p
  - BIT-django-2026-6907
  - PYSEC-2026-55
title: Django Uses Cache Containing Sensitive Information
summary: Django Uses Cache Containing Sensitive Information
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N'
vendor: django
product: django
ecosystem: pip
affected:
  - 'django >= 6.0, < 6.0.5'
  - 'django >= 5.2, < 5.2.14'
patched:
  - django 6.0.5
  - django 5.2.14
published: '2026-05-05'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:45.732883899Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-5hrc-gvxj-w55p'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-6907'
  - url: 'https://docs.djangoproject.com/en/dev/releases/security'
  - url: 'https://github.com/django/django'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-55.yaml
  - url: 'https://groups.google.com/g/django-announce'
  - url: 'https://www.djangoproject.com/weblog/2026/may/05/security-releases'
tags:
  - osv
  - pip
epss: 0.00358
epssPercentile: 0.29637
ingestedAt: '2026-09-12T03:13:01.660Z'
---

## Overview

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 thanks Ahmad Sadeddin for reporting this issue.

## Affected packages

- `django >= 6.0, < 6.0.5`
- `django >= 5.2, < 5.2.14`

## Remediation

Upgrade to a patched release:

- `django 6.0.5`
- `django 5.2.14`
