The Wire · Showcase
DJANGO PATCHES THREE CRITICAL CACHE AND UPLOAD VULNERABILITIES
By RepoJournal · Filed · About Django
Django shipped fixes overnight for three security flaws affecting cache headers, session handling, and ASGI file uploads that could let attackers bypass critical safety limits.
Three CVEs hit the archive simultaneously [1], each addressing a distinct attack surface. CVE-2026-6907 [2] fixes a cache poisoning vulnerability where requests with wildcard Vary headers were being cached when they shouldn't be — a bypass that could serve stale data to the wrong users. CVE-2026-35192 [3] ensures the Vary header is actually sent when SESSION_SAVE_EVERY_REQUEST=True, preventing session fixation attacks in certain configurations. The most dangerous is CVE-2026-5766 [4], which exploits ASGI deployments specifically: attackers could declare a small Content-Length header while uploading massive files, bypassing DATA_UPLOAD_MAX_MEMORY_SIZE entirely and crashing your workers. The ASGI vulnerability is critical if you're running Django on async servers — the fix enforces memory limits regardless of what the client claims to be sending.
One email a day. Unsubscribe in one click.
Keep up with Django in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Patch immediately if running ASGI deployments (CVE-2026-5766) django/django [immediate]
- → Upgrade all Django instances for CVE-2026-6907 and CVE-2026-35192 django/django [immediate]
- → Verify SESSION_SAVE_EVERY_REQUEST=True configs are protected django/django [plan]
References
- [1] Added CVE-2026-5766, CVE-2026-35192, and CVE-2026-6907 to security archive. django/django
- [2] Fixed CVE-2026-6907 -- Prevented caching of requests when Vary header contains an asterisk. django/django
- [3] Fixed CVE-2026-35192 -- Ensured Vary header is sent when setting session cookie with SESSION_SAVE_EVERY_REQUEST=True. django/django
- [4] Fixed CVE-2026-5766 -- Enforced DATA_UPLOAD_MAX_MEMORY_SIZE in MemoryFileUploadHandler on ASGI. django/django