Cache Response Vulnerability in Django Middleware
CVE-2026-35193
What is CVE-2026-35193?
A weakness in the Django cache middleware allows attackers to potentially access private cached data through unauthenticated requests. Specifically, the UpdateCacheMiddleware fails to include the Authorization header in the Vary response header for requests that do not specify Cache-Control: public. This oversight enables attackers to retrieve sensitive information from the cache by accessing the same URL as a legitimate user. Versions 5.2 before 5.2.15 and 6.0 before 6.0.6 are reported to be affected, along with earlier unsupported versions that may also suffer from this issue. The Django community has acknowledged this vulnerability and appreciates the researcher who brought it to their attention.
Affected Version(s)
Django 6.0 < 6.0.6
Django 5.2 < 5.2.15
Django 6.0.6
