Skip to main content

Django 6.1.3

Release Date: November 3, 2026

A security-focused patch lands in the 6.1 series

The Django Software Foundation released Django 6.1.3 on November 3, 2026, a maintenance update that closes six security advisories and repairs several bugs introduced in 6.1.2. Five of the advisories carry Django's low severity rating, while one, a server-side request forgery issue in GeoDjango's handling of GeoJSON coordinate reference systems, is rated moderate. The release also adds compatibility with Python 3.15.

The update arrives roughly four weeks after 6.1.2, continuing the project's pattern of bundling security work into regular patch releases rather than sitting on isolated advisories. Projects on any earlier 6.1 build should treat this as a mandatory upgrade, and installations that use GeoDjango deserve attention first.

What Changed

The moderate issue, tracked as CVE-2026-111362, concerns the crs member of GeoJSON geometries. Earlier revisions of the GeoJSON specification allowed a coordinate reference system to be expressed as a URL, and GDAL still resolves those URLs. Any validation, save, or query path that instantiated a geometry from user input therefore allowed an attacker to supply a malicious CRS and make the Django process issue an outbound request, read a local file, or both. Lookups against spatial fields, the GeometryField form field, and GEOSGeometry now reject GeoJSON geometries whose CRS points at external resources. The DataSource and LayerMapping utilities, which load trusted data, keep accepting them.

A second SSRF vector was closed in CVE-2026-114582. SpatialReference passed string input straight to GDAL, which by default resolves URLs and reads files, affecting GEOSGeometry.transform(), OGRGeometry.transform(), GDALRaster.transform(), and the srs and srid setters. On GDAL 3.9 and later, SpatialReference now disables network and file access when parsing strings, which means file paths and URLs are no longer valid inputs. Dictionary references using the DICT: prefix, including ESRI:: variants, are rejected on every GDAL version. Full protection depends on GDAL 3.9 or newer, so the release adds a gis.W001 system check that warns when the installed GDAL is older.

The remaining advisories are smaller but still worth reading. CVE-2026-108147 addresses memory exhaustion in MultiPartParser: multipart uploads sent with Content-Transfer-Encoding: base64 were buffered entirely in memory regardless of FILE_UPLOAD_MAX_MEMORY_SIZE before reaching upload handlers. CVE-2026-111211 covers log injection through unescaped geometry form values, where GeometryField widgets logged invalid submissions with control characters intact, enabling forged or scrambled log output. CVE-2026-113593 fixes cache key collisions in UpdateCacheMiddleware and cache_page(), where a request that omitted a header listed in Vary and a request that sent it empty produced the same key; keys now distinguish absent from empty values as RFC 9111 Section 4.1 requires, and responses cached under the old behavior will be re-cached on the next request. CVE-2026-113733 stops view-only admin users from seeing full password hashes on custom user models, specifically when the model is not AUTH_USER_MODEL or inherits its password field through multi-table inheritance.

Bugfixes

  • Deferred fields loaded with the FETCH_PEERS fetch mode no longer overwrite values peer instances had already modified locally or loaded via refresh_from_db() with an explicit fields argument. The fix also resolves a KeyError when a peer's row had been deleted (#37436).
  • The YAML serializer no longer crashes when passed the sort_keys option (#37405).
  • A Value expression with a None value and an output field other than JSONField no longer crashes on SQLite inside a top-level JSONField in lookup (#37403).
  • legend_tag() with custom attrs no longer adds required_css_class more than once (#37463).
  • Compatibility with oracledb 26.0.0 and later (#37411).
  • makemessages no longer crashes on Windows when processing non-ASCII filenames under Python 3.15 or with UTF-8 mode enabled on older interpreters (#37447).

Why It Matters

GeoDjango has produced a steady run of SSRF advisories this year, and the pattern is consistent: user-supplied spatial input reaching GDAL, which is happy to fetch URLs. Teams that accept geometry from forms, APIs, or GeoJSON uploads should verify their GDAL version and audit any code path where untrusted values reach SpatialReference or a geometry constructor. Passing integer SRIDs instead of strings is the safer default, and the release notes recommend it explicitly. For everyone else, the MultiPartParser and cache key fixes are the practical ones, since both can be hit without any special configuration.

What's Next

Django 6.1.4 release notes already exist in the documentation tree, which signals the next patch is in preparation. Upgrade with pip install --upgrade Django==6.1.3, run the test suite, and check the W001 system check output if your project uses GIS features. Python 3.15 users get an added bonus: the release claims official compatibility, so the earlier workarounds for the new interpreter can come out.

Other Versions

We use cookies for ads and analytics.