ADVISORIES

Ubuntu Security Notice

USN-8232-1

python-django vulnerabilities

Details

It was discovered that Django did not vary cached response headers on cookies when sessions were not modified while SESSION_SAVE_EVERY_REQUEST was enabled. A remote attacker could possibly use this issue to steal a user's session. (CVE-2026-35192)

Kyle Agronick and Jacob Walls discovered that Django incorrectly handled ASGI requests with missing or understated Content-Length header values. A remote attacker could possibly use this issue to cause Django to use excessive resources, leading to a denial of service. (CVE-2026-5766)

Ahmad Sadeddin discovered that Django UpdateCacheMiddleware incorrectly cached requests where the Vary header contained an asterisk. A remote attacker could possibly use this issue to obtain sensitive information. (CVE-2026-6907)

Affected packages

EcosystemPackageAffected versions
Ubuntu:22.04:LTSpython-django
All versions before 2:3.2.12-2ubuntu1.27 (fixed in 2:3.2.12-2ubuntu1.27)
Ubuntu:24.04:LTSpython-django
All versions before 3:4.2.11-1ubuntu1.16 (fixed in 3:4.2.11-1ubuntu1.16)
Ubuntu:25.10python-django
All versions before 3:5.2.4-1ubuntu2.5 (fixed in 3:5.2.4-1ubuntu2.5)
Ubuntu:26.04:LTSpython-django
All versions before 3:5.2.9-0ubuntu4.1 (fixed in 3:5.2.9-0ubuntu4.1)

References