Illustration of a browser window with coloured bars, a blue shield with a magenta bandage and a purple wrench.

Django Fixes 7 Security Flaws: Update to 6.1.4

Admin

On December 2, 2026, Django released versions 6.1.4, 6.0.11 and 5.2.20, fixing 7 security flaws: two rated high, one moderate and four low. It affects websites and applications built with the Python framework. Django does not say any of the flaws are being exploited.

What we know

  • The announcement: Django's official blog published the 6.1.4, 6.0.11 and 5.2.20 security releases on December 2, 2026, detailing 7 issues, and encourages all Django users to upgrade as soon as possible.
  • The two high-severity flaws, according to the 6.1.4 and 6.0.11 release notes:

- CVE-2026-124827: server-side file write when data is assigned to a RasterField. Django says that, depending on the raster driver, it could enable remote code execution. It only affects projects on PostGIS; geometry fields are not affected. According to the announcement, the flaw was reachable by default on models with a RasterField registered in the admin or used in ModelForms or writable model serializers. From these releases on, RasterField is no longer editable by default.

- CVE-2026-132092: potential SQL injection in the range and in lookups.

  • The moderate one: CVE-2026-115868, potential cross-site scripting in the truncatechars_html template filter.
  • The four low ones: potential cache poisoning through dot segments in request paths (CVE-2026-125673); two information leaks in the admin changelist (CVE-2026-119642 and CVE-2026-127929); and a heap buffer overflow in OGRGeometry.wkb that only occurs with geometries larger than 4 GB on 64-bit platforms (CVE-2026-132809).
  • What Django does not say: it gives no CVSS score and does not mention active attacks.
  • All three branches: according to the announcement, the fixes for all 7 flaws were applied to the 6.1, 6.0 and 5.2 branches.
  • What comes next: 6.1.5, expected on January 5, 2027, will only fix bugs, according to its release note.

What changes and what doesn't

Fixed versions now exist for the three supported branches: 6.1, 6.0 and 5.2. Django did not publish fixes for older branches. If your project runs one of them, the fix means moving to a newer branch.

Not every flaw touches every project. The most serious one only affects projects using PostGIS raster fields. The two admin changelist leaks only matter if you use Django's admin. The truncatechars_html flaw only matters if your templates use that filter. That reading is this article's: Django asks everyone to upgrade, without distinguishing cases.

Nothing changes for sites that don't run Django, such as those built on WordPress, Drupal or Node.js.

How to tell if you're affected

  1. Check your version. On the server or in the project environment, run python -m django --version. You can also look for the Django line in requirements.txt, pyproject.toml or whatever dependency file your project uses.
  2. Move to the fixed release of your branch. On 6.1, you need 6.1.4; on 6.0, 6.0.11; on 5.2, 5.2.20. With pip: pip install "Django>=6.1.4,<6.2", adjusting the numbers to your branch.
  3. If you're on anything older than 5.2, you won't get these fixes. Plan the move to 5.2 or a later branch and test it in a staging environment first.
  4. Answer three questions about your project. Does it use PostGIS with any RasterField, especially in the admin, in forms or in an API that accepts writes? Is Django's admin enabled? Does any template use truncatechars_html? If the answer is yes, that project goes first.
  5. If you use RasterField, review the forms that use it: from these releases on the field is no longer editable by default, and Django warns that assigning user-supplied data to it is still a risk.
  6. Restart the application after upgrading. The running process keeps the old version until it restarts. If the site runs in a container, rebuild the image and redeploy it.
  7. If someone else maintains your site, ask them today: "Which Django version does the site run, and when will it move to 6.1.4, 6.0.11 or 5.2.20?"

Related: Node.js High-Severity Security Fixes Due December 9

Sources

Updates: if Django confirms attacks or publishes a severity score, it will be added here with its link.

Worried about how this affects your website?
We will go over what to change with you. It is a free 30-minute call.