Plan this weekVulnerabilities

Django 6.1.4, 6.0.11 and 5.2.20 fix seven security flaws, two rated high: a file-write in the GIS RasterField and an SQL injection in the range and in lookups. Update now

The Django project released 6.1.4, 6.0.11 and 5.2.20 on 2 December 2026 to fix seven security issues. Two are rated high: CVE-2026-124827, a server-side file write through the GIS RasterField that, depending on the raster driver, could enable remote code execution (PostGIS only), and CVE-2026-132092, an SQL injection in range and in lookups with aliases or key transforms containing percent signs. The post does not say any of them is being exploited.

How urgent

Plan this week

Who is affected

Django sites and apps on main, 6.1, 6.0 and 5.2 before the patched releases. The RasterField flaw only matters if you use django.contrib.gis with PostGIS and assign untrusted input to a raster field. The SQL injection needs range or in lookups with aliases or key transforms that contain percent signs

What to do

Upgrade to Django 6.1.4, 6.0.11 or 5.2.20, whichever line you run, and redeploy. After upgrading, clear your caches (CVE-2026-125673 can leave cached responses served for the wrong URLs). If you use GIS rasters, never assign user input to a raster field without validating it. If you run a Django version outside these three lines, plan the move: the post does not list fixes for it

Published 2 Dec 2026 · Sources last checked 2 Dec 2026No. 154 / 168

Watch the short video

The video loads from YouTube (privacy-enhanced mode) only when you press play.

What happened

On 2 December 2026 the Django project released 6.1.4, 6.0.11 and 5.2.20, which together fix seven security issues. The post asks everyone to "upgrade as soon as possible". The previous security release was on 3 November.

Two of the seven are rated high by the project:

  • CVE-2026-124827 (high), RasterField file write. In django.contrib.gis, assigning a user-controlled name and a non-default driver to a RasterField could write a file on the server. The post says that, depending on the raster driver, this "could enable remote code executionRCE (remote code execution) A flaw that lets an attacker run their own code on your server or device from a distance. Tap again to open the glossary". It applies to PostGIS. The fix makes the field non-editable by default and rejects a non-default driver.
  • CVE-2026-132092 (high), SQL injectionSQL injection A flaw where text typed into a form or a link is run as a database command, letting an attacker read or change data. Tap again to open the glossary in lookups. range and in lookups could be injected through aliases or key transforms containing percent signs. The fix makes range require exactly two values.

The other five

  • CVE-2026-115868 (moderate): possible cross-site scripting in the truncatechars_html filter when the text length matches the truncation length and the result is placed in an HTML attribute.
  • CVE-2026-125673 (low): dot segments in request paths were normalized incorrectly, which could make cached responses be served for unintended URLs. Existing cached responses are not invalidated: the post says to clear any caches that may be affected after upgrading.
  • CVE-2026-119642 and CVE-2026-127929 (low): in the admin change list, a staff user with only view permission could enumerate data through a pk alias or a reverse relation in the query string.
  • CVE-2026-132809 (low): an undersized buffer for geometries larger than 4 GB on 64-bit platforms could cause crashes or undefined behavior.

What to do

  1. Upgrade to the latest patchPatch (security update) A fix released by the maker of a piece of software to close a flaw or a bug. Tap again to open the glossary of your line: 6.1.4, 6.0.11 or 5.2.20. Pin it, run your tests and redeploy.
  2. Clear your caches after upgrading if you use cache_page() or the cache middleware (CVE-2026-125673). This is the project's guidance.
  3. If you use GIS rasters, do not assign untrusted input to a raster field without validating it. The post says server-side request forgery is still possible if untrusted input is assigned.
  4. Check your lookups: percent signs in aliases and key transforms are deprecated since Django 6.0 and scheduled for removal in 2028. This is our reading of the post: if your code builds aliases from user input, fix that too.

What we could not confirm

We read the Django post in full. It does not say that any of these flaws is being exploited, and it does not list affected versions per CVECVE A public ID number, like CVE-2026-12345, given to one specific security flaw so everyone can talk about the same bug. Tap again to open the glossary, only the supported lines (main, 6.1, 6.0, 5.2). It says nothing about versions that are no longer supported. Some media coverage uses a catchy name for this release; that name is not in the project's post, and we did not test the flaws ourselves.

Glossary: vulnerabilityVulnerability A weakness in software, a setting or a process that an attacker could use to get in or do harm. Tap again to open the glossary, patch, dependency. See also our free website security check.

Keep reading

More stories on the same topic or from the same area.

Comments

No account needed. Add a nickname if you like, or leave it empty to comment anonymously. Comments are reviewed before they appear. Links are not allowed.

    We store your comment, your nickname and a scrambled form of your connection that we use only to limit spam. We do not store your IP address or set cookies. Cloudflare Turnstile checks that you are not a bot.

    Sources and verification

    We use primary sources first and say when we rely on a news report. Dates are the day we last checked each source.

    Spotted a mistake? Email [email protected] and we will correct it and note the change.

    Newsletter · every Friday · free

    Get the weekly security briefing

    One email every Friday: what to act on now and what to plan this week, in plain words. The free one-page runbooks come in your welcome email. You confirm your address first.

    Subscribe for free

    Press / to search from any page