Description
An issue was discovered in Django 6.1 before 6.1.3, 6.0 before 6.0.10, and 5.2 before 5.2.19.
`django.contrib.gis.forms.widgets.BaseGeometryWidget.deserialize()`, used by `django.contrib.gis.forms.GeometryField`, does not escape invalid submitted values before logging them, which allows remote attackers to inject or forge log entries via a crafted geometry value.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Aaron chen for reporting this issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| djangoproject | Django | 6.1 – < 6.1.3, 6.0 – < 6.0.10, 5.2 – < 5.2.19 | 6.1.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-django | 3:5.2.19-1 | — |
| Debian 13 | python-django | No fix yet | — |
| Debian 12 | python-django | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | python-django | No fix yet | — |
| Ubuntu 26.04 LTS | python-django | No fix yet | — |
| Ubuntu 24.04 LTS | python-django | No fix yet | — |
| Ubuntu 22.04 LTS | python-django | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | python-django | No fix yet | — |
| Ubuntu Pro 18.04 LTS | python-django | No fix yet | — |
| Ubuntu Pro 16.04 LTS | python-django | No fix yet | — |
| Ubuntu Pro 14.04 LTS | python-django | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Django | 6.1.3-1.1 | openSUSE-SU-2026:12518-1 |
| openSUSE Tumbleweed | python-Django4 | 4.2.30-7.1 | openSUSE-SU-2026:12502-1 |
| openSUSE Tumbleweed | python-Django5 | 5.2.19-1.1 | openSUSE-SU-2026:12519-1 |
| openSUSE Leap 16.0 | python-Django | 5.2.4-bp160.13.1 | openSUSE-SU-2026:22278-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | py3-django | 5.2.19-r0 | — |
Advisories 5
- openSUSE-SU-2026:22278-1 Security update for python-Django SUSE / openSUSE Security Updates · Nov 14, 2026
- WID-SEC-2026-4333 Django: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 12, 2026
- openSUSE-SU-2026:12518-1 python313-Django-6.1.3-1.1 on GA media SUSE / openSUSE Security Updates · Nov 11, 2026
- openSUSE-SU-2026:12519-1 python313-Django5-5.2.19-1.1 on GA media SUSE / openSUSE Security Updates · Nov 11, 2026
- openSUSE-SU-2026:12502-1 python313-Django4-4.2.30-7.1 on GA media SUSE / openSUSE Security Updates · Nov 10, 2026
References
- Django security archive vendor-advisory
- Django releases announcements mailing-list
- https://github.com/django/django/commit/af4319f7217e33ad5db747226765f09b49ec07ba patch
- https://github.com/django/django/commit/b336d9a4e8a919d2e5f979b663de2b27e245b793 patch
- https://github.com/django/django/commit/1b747694d6a68a6b5d48cbe81c71053092a5d374 patch
- https://github.com/django/django/commit/b83bf870ee0006ab0dd84a01d1f3b0391320a51a patch
- Django security releases issued: 6.1.3, 6.0.10, and 5.2.19 vendor-advisory