ALPINE-CVE-2026-113593: Low severity alpine/py3-django vulnerability
An issue was discovered in Django 6.1 before 6.1.3, 6.0 before 6.0.10, and 5.2 before 5.2.19. The django.middleware.cache.UpdateCacheMiddleware and the django.views.decorators.cache.cachepage() decorator generate identical cache keys for requests that omit a header listed in the response’s Vary header and requests that include that header with an empty value, potentially allowing remote attackers to access private data cached for another request. Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected. Django would like to thank Andrew Gonzalez for reporting this issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/py3-djangoto a version that resolves this vulnerability.Fixed in 5.2.19-r0 - Upgrade
Upgrade
Djangoto a version that resolves this vulnerability.Fixed in 6.1.3 - Upgrade
Upgrade
Djangoto a version that resolves this vulnerability.Fixed in 6.0.10 - Upgrade
Upgrade
Djangoto a version that resolves this vulnerability.Fixed in 5.2.19
Event History
Frequently Asked Questions
What conditions are needed for private data to be exposed?
The application must use UpdateCacheMiddleware or the cache_page() decorator and cache a response whose Vary header lists a header relevant to the response. A remote attacker may then distinguish between omitting that header and supplying it with an empty value to receive data cached for another request.
Which Django versions include the fix?
Upgrade to Django 6.1.3 or later, 6.0.10 or later, or 5.2.19 or later. Django 6.1 before 6.1.3, 6.0 before 6.0.10, and 5.2 before 5.2.19 are affected.
How can I identify endpoints that may be at risk?
Review endpoints cached through UpdateCacheMiddleware or cache_page() and identify cached responses that include a Vary header and may contain private data. Unsupported Django series, including 5.1.x, 5.0.x, and 4.2.x, were not evaluated and may also be affected.