CVE-2026-6907: Potential exposure of private data due to incorrect handling of Vary: * in UpdateCacheMiddleware

Published May 5, 2026
·
Updated

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.

Affected Software

7 affected components
Django Django 6.0<6.0.5
Django Django 5.2<5.2.14
Django Django 5.0.x
Django Django 4.1.x
Django Django 3.2.x
djangoproject Django>=5.2<5.2.14
djangoproject Django>=6.0<6.0.5

Event History

May 5, 2026
CVE Published
via MITRE·02:50 PM
Data Sourced
via MITRE·02:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeaknessAffected Software
Aug 31, 58328
Event
via FIRST·09:21 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-6907?

CVE-2026-6907 is considered a high-severity vulnerability due to potential exposure of private data.

2

How do I fix CVE-2026-6907?

To fix CVE-2026-6907, you should upgrade to Django version 6.0.5 or higher, or 5.2.14 or higher.

3

What versions of Django are affected by CVE-2026-6907?

CVE-2026-6907 affects Django versions 6.0 up to 6.0.5 and 5.2 up to 5.2.14, as well as multiple earlier 5.0.x, 4.1.x, and 3.2.x versions.

4

What causes the vulnerability in CVE-2026-6907?

The vulnerability in CVE-2026-6907 is caused by the incorrect caching of requests in UpdateCacheMiddleware when the Vary header contains an asterisk ('*').

5

What is the potential impact of CVE-2026-6907?

The potential impact of CVE-2026-6907 is the unintended exposure of private data due to erroneous request caching.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203