
On November 3, 2026, the Django team shipped security releases 6.1.3, 6.0.10, and 5.2.19, covering six CVEs. Most of them are rated low severity and won't touch a typical CRUD app. Two of them will, if your app does either of two very common things: accepts file uploads, or uses GeoDjango. Here's what each CVE actually requires to trigger, and how to check if your own project is exposed.
Upgrade first, read the details after
If you want the short version: upgrade now, read the rest later.
pip install --upgrade "django==6.1.3" # or 6.0.10 / 5.2.19 depending on your branch
python -c "import django; print(django.get_version())"Now the actual breakdown, worst-reach first.
CVE-2026-114582 — SSRF via SpatialReference string input (GeoDjango)
This is the one that matters most if you run GeoDjango. Several GDAL-backed APIs accept a spatial reference as a plain string, and that string gets handed straight to GDAL — which, by default, will resolve it as a URL or read it as a local file path if it looks like one:
from django.contrib.gis.gdal import SpatialReference
# if `user_input` is attacker-controlled and GDAL < 3.9,
# this can trigger an outbound request or a local file read
srs = SpatialReference(user_input)The affected surface is wider than just that one constructor — it includes GEOSGeometry.transform(), OGRGeometry.transform(), GDALRaster.transform(), the OGRGeometry.srs setter, and the GDALRaster.srs/srid setters. Anywhere one of these takes a string that ultimately comes from a request — a form field, an uploaded shapefile's metadata, an API payload — is a path in.
The real-world bite: combine the outbound request with a service that reflects responses back to the user, and this becomes a way to read internal network state. Combine it with local file access, and it can disclose files the Django process can read.
The fix depends on your GDAL version. On GDAL 3.9+, Django's patch disables network and file access during string parsing entirely, and rejects file paths, URLs, and DICT:/ESRI:: references. On anything older than 3.9, you only get the DICT:/ESRI:: rejection — the URL/file protection needs the newer GDAL. Check which you're running:
from django.contrib.gis.gdal import GDAL_VERSION
print(GDAL_VERSION) # need 3.9+ for full protectionDjango 6.1.3 also ships a new system check, gis.W001, that warns you at startup if your GDAL is below 3.9 — run python manage.py check after upgrading and don't ignore that warning. If you can't bump GDAL right away, the practical mitigation is to stop accepting free-text SRS strings from untrusted input and use integer SRIDs instead — they aren't parsed by GDAL's string path at all.
CVE-2026-108147 — memory exhaustion in MultiPartParser
If your app takes file uploads — and almost every Django app does somewhere — this one's worth checking regardless of whether you touch GIS at all. FILE_UPLOAD_MAX_MEMORY_SIZE exists specifically so a large upload gets streamed to disk instead of held in RAM. The bug: multipart parts that declare a base64 Content-Transfer-Encoding were being fully buffered in memory before that setting was ever consulted.
# settings.py — this setting is supposed to cap in-memory buffering,
# but CVE-2026-108147 let base64-encoded parts bypass it entirely
FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 # 2.5MBIn practice: a handful of concurrent requests, each with a part that encodes to something well past that cap, and worker memory climbs independent of the limit you thought you'd set. That's a denial-of-service path on any endpoint that accepts multipart uploads from untrusted clients — public signup forms, unauthenticated contact-with-attachment endpoints, anything that doesn't gate uploads behind auth and reasonable size limits at the proxy layer too. The fix makes the memory cap apply before base64 decoding happens, not after. Upgrading closes it; there's no settings-only workaround while running the old version.
CVE-2026-113733 — password hash exposed to view-only admins
Narrower blast radius, but a real one if you're on a custom user model. Django's admin is supposed to mask the password field, showing a change-password link instead of the hash. That masking broke for staff with view-only permission when either of these is true: your user model isn't the one set in AUTH_USER_MODEL, or it is, but it inherits its password field from a concrete parent class via multi-table inheritance.
# models.py — this pattern is exactly the shape that triggered it
class BaseAccount(AbstractUser):
class Meta:
abstract = False # concrete parent — MTI, not swappable as AUTH_USER_MODEL
class StaffAccount(BaseAccount):
department = models.CharField(max_length=100)A staff user with view-only admin access to StaffAccount records would see the actual stored password hash instead of the masked field. A view-only hash isn't a plaintext password, but it's still a credential you don't want exposed to anyone short of someone who can already change it — hash disclosure materially helps an offline cracking attempt.
If you have any model like this with view-only admin staff, upgrade and then double check: log in as a view-only staff account and confirm the password field renders as the masked widget, not raw text.
Two more worth a mention
CVE-2026-111211 — log injection via GeometryField. Invalid geometry values submitted through forms got logged without escaping control characters, so a crafted value with embedded newlines or ANSI escape sequences could forge or corrupt log entries. If you parse logs programmatically or feed them into a terminal, this is the kind of thing that looks like a shrug until someone's log-injected a fake "ERROR: disk full, shutting down" line into your ops channel.
CVE-2026-111362 — a second SSRF, this time via the crs member of GeoJSON input. Older GeoJSON allowed specifying a coordinate reference system by URL, and GDAL would resolve it. The fix makes spatial lookups, GeometryField, and GEOSGeometry reject GeoJSON carrying an external CRS reference — note that DataSource and LayerMapping still accept them, so don't assume this one's fully closed off if you use those entry points directly.
There's also CVE-2026-113593, a cache-poisoning-adjacent bug: UpdateCacheMiddleware and cache_page() generated the same cache key whether a request omitted the Vary header or sent it empty, which could serve one client's cached response to another. If you use per-user or per-session caching keyed off Vary, this is worth a look too — the fix distinguishes "absent" from "empty" per RFC 9111, which means previously-cached entries for header-omitting requests get regenerated after upgrade.
Who should actually stop and check right now
- Running GeoDjango with GDAL below 3.9, accepting SRS strings or GeoJSON CRS from user input — check
GDAL_VERSIONtoday, not after the upgrade. - Any public-facing multipart upload endpoint without auth or a hard size cap at the proxy/load balancer level — the Django-level fix helps, but defense in depth still applies.
- Custom
AUTH_USER_MODELsetups using multi-table inheritance, with any staff holding view-only admin permissions. - Anything logging raw
GeometryFieldform input, or relying onVary-keyed page caching for per-user responses.
None of these require exotic configurations — file uploads and custom user models are two of the most common things a Django app does. Read the full CVE breakdown and the upgrade checklist on the blog, and don't let "it's rated low severity" talk you out of shipping the upgrade this week.

Experienced DevOps Engineer proficient in Python, Docker, Kubernetes, CI/CD, and cloud technologies. Specialized in automating processes and building scalable infrastructure for seamless development and deployment.


