Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Django
  4. ›
  5. CVE-2026-6907

CVE-2026-6907: Django Uses Cache Containing Sensitive Information

May 5, 2026 (updated May 8, 2026)

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.

References

  • docs.djangoproject.com/en/dev/releases/security
  • github.com/advisories/GHSA-5hrc-gvxj-w55p
  • github.com/django/django
  • groups.google.com/g/django-announce
  • nvd.nist.gov/vuln/detail/CVE-2026-6907
  • www.djangoproject.com/weblog/2026/may/05/security-releases

Code Behaviors & Features

Detect and mitigate CVE-2026-6907 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.2 before 5.2.14, all versions starting from 6.0 before 6.0.5

Fixed versions

  • 6.0.5
  • 5.2.14

Solution

Upgrade to versions 5.2.14, 6.0.5 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-524: Use of Cache Containing Sensitive Information

Source file

pypi/Django/CVE-2026-6907.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:19:05 +0000.