CVSS 3.1
7.5 highCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HHigh (7.5) in djangoproject django. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in django 4.2.28, 5.2.11, 6.0.2.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:Hdjango (PyPI): fixed in 6.0.2, 5.2.11, 4.2.28Explain CVE-2026-1285 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-1285?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-1285?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-1285 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| djangoproject Django | from 6.0 before 6.0.2 |
| djangoproject Django | from 5.2 before 5.2.11 |
| djangoproject Django | from 4.2 before 4.2.28 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-4rrr-2h4v-f3j9 | PyPI | django | >=6.0a1 <6.0.2 | 6.0.2 |
| GHSA-4rrr-2h4v-f3j9 | PyPI | django | >=5.2a1 <5.2.11 | 5.2.11 |
| GHSA-4rrr-2h4v-f3j9 | PyPI | django | >=4.2a1 <4.2.28 | 4.2.28 |
| PYSEC-2026-45 | PyPI | django | >=4.2 <4.2.28 >=5.2 <5.2.11 >=6.0 <6.0.2 | 4.2.28, 5.2.11, 6.0.2 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | python-django | 2:2.2.28-1~deb11u12 | DLA-4484-1 |
| Debian | 12 | python-django | 3:3.2.25-0+deb12u2 | DEBIAN-CVE-2026-1285 DSA-6150-1 |
| Debian | 13 | python-django | 3:4.2.28-0+deb13u1 | DEBIAN-CVE-2026-1285 DSA-6150-1 |
| Debian | 14 | python-django | 3:4.2.28-1 | DEBIAN-CVE-2026-1285 |
| Ubuntu | 22.04:LTS | python-django | 2:3.2.12-2ubuntu1.25 | UBUNTU-CVE-2026-1285 USN-8009-1 |
| Ubuntu | 24.04:LTS | python-django | 3:4.2.11-1ubuntu1.14 | UBUNTU-CVE-2026-1285 USN-8009-1 |
| Ubuntu | 25.10 | python-django | 3:5.2.4-1ubuntu2.3 | UBUNTU-CVE-2026-1285 USN-8009-1 |
| Ubuntu | 26.04:LTS | python-django | 3:5.2.9-0ubuntu3 | UBUNTU-CVE-2026-1285 |
| Ubuntu | Pro:14.04:LTS | python-django | 1.6.11-0ubuntu1.3+esm10 | USN-8009-1 |
| Ubuntu | Pro:16.04:LTS | python-django | 1.8.7-1ubuntu5.15+esm11 | UBUNTU-CVE-2026-1285 USN-8009-1 |
| Ubuntu | Pro:18.04:LTS | python-django | 1:1.11.11-1ubuntu1.21+esm14 | UBUNTU-CVE-2026-1285 USN-8009-1 |
| Ubuntu | Pro:20.04:LTS | python-django | 2:2.2.12-1ubuntu0.29+esm7 | UBUNTU-CVE-2026-1285 USN-8009-1 |
| Red Hat | ansible_automation_platform:2.5::el8 | automation-controller, automation-controller-ui, automation-controller-cli and 2 more | 0:4.6.26-1.el8ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el8 | automation-gateway, automation-gateway-config, automation-gateway-server | 0:2.5.20260225-1.el8ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el8 | python3.12-aiohttp, python3.12-aiohttp-debuginfo, python3.12-aiohttp-debugsource | 0:3.13.3-2.el8ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el8 | python3.12-protobuf, python3.12-protobuf-debuginfo, python3.12-protobuf-debugsource | 0:5.29.6-1.el8ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el8 | receptor, receptorctl, receptor-debuginfo and 1 more | 0:1.6.3-4.el8ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8 | python3.12-django | 0:4.2.28-1.el8ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el9 | automation-controller, automation-controller-ui, automation-controller-cli and 2 more | 0:4.6.26-1.el9ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el9 | automation-gateway, automation-gateway-config, automation-gateway-server | 0:2.5.20260225-1.el9ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el9 | python3.12-aiohttp, python3.12-aiohttp-debuginfo, python3.12-aiohttp-debugsource | 0:3.13.3-2.el9ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el9 | python3.12-protobuf, python3.12-protobuf-debuginfo, python3.12-protobuf-debugsource | 0:5.29.6-1.el9ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el9 | receptor, receptorctl, receptor-debuginfo and 1 more | 0:1.6.3-4.el9ap | RHSA-2026:3959 |
| Red Hat | ansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9 | python3.12-django | 0:4.2.28-1.el9ap | RHSA-2026:3959 |
| 52 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Linux Enterprise Module for Package Hub 15 SP7 | python-Django | 4.2.11-150600.3.47.1 | SUSE-SU-2026:0440-1 |
| openSUSE | Leap 15.6 | python-Django | 4.2.11-150600.3.47.1 | SUSE-SU-2026:0440-1 |
| openSUSE | Leap 16.0 | python-Django | 5.2.4-bp160.5.1 | openSUSE-SU-2026:20184-1 |
| openSUSE | Tumbleweed | python-Django | 5.2.11-1.1 | openSUSE-SU-2026:10160-1 |
| openSUSE | Tumbleweed | python-Django4 | 4.2.28-1.1 | openSUSE-SU-2026:10247-1 |
| openSUSE | Tumbleweed | python-Django5 | 5.2.16-1.1 | openSUSE-SU-2026:11270-1 |
| openSUSE | Tumbleweed | python-Django6 | 6.0.2-1.1 | openSUSE-SU-2026:10145-1 |
| Alpine | v3.23, v3.24 | py3-django | 4.2.28-r0 | ALPINE-CVE-2026-1285 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Moderate.
This is a MODERATE impact denial-of-service flaw in Django. Applications utilizing Django that process untrusted HTML inputs with a large number of unmatched end tags through the `Truncator.chars()` or `Truncator.words()` methods (with `html=True`), or the `truncatechars_html` and `truncatewords_html` template filters, may experience resource exhaustion. This can lead to the application becoming unavailable.
To mitigate this issue, applications utilizing Django should avoid processing untrusted HTML content through the `django.utils.text.Truncator.chars()` and `Truncator.words()` methods with `html=True`, or the `truncatechars_html` and `truncatewords_html` template filters. Restrict the use of these functions to only trusted inputs where the HTML structure is controlled and validated.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | python3.12-django-0:4.2.28-1.el8ap | Fixed 2026-03-06 | RHSA-2026:3959 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | python3.12-django-0:4.2.28-1.el9ap | Fixed 2026-03-06 | RHSA-2026:3959 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | python3.12-django-0:4.2.28-1.el9ap | Fixed 2026-03-06 | RHSA-2026:3958 |
| Red Hat Satellite 6.16 for RHEL 8 | python-django-0:4.2.28-0.1.el8pc | Fixed 2026-03-26 | RHSA-2026:5971 |
| Red Hat Satellite 6.16 for RHEL 9 | python-django-0:4.2.28-0.1.el9pc | Fixed 2026-03-26 | RHSA-2026:5971 |
| Red Hat Satellite 6.17 for RHEL 9 | foreman-0:3.14.0.14-1.el9sat | Fixed 2026-03-26 | RHSA-2026:5970 |
| Red Hat Satellite 6.17 for RHEL 9 | libcomps-0:0.1.23-0.3.el9pc | Fixed 2026-03-26 | RHSA-2026:5970 |
| Red Hat Satellite 6.17 for RHEL 9 | python-brotli-0:1.2.0-0.1.el9pc | Fixed 2026-03-26 | RHSA-2026:5970 |
| Red Hat Satellite 6.17 for RHEL 9 | python-django-0:4.2.28-0.1.el9pc | Fixed 2026-03-26 | RHSA-2026:5970 |
| Red Hat Satellite 6.17 for RHEL 9 | python-pulp-container-0:2.22.3-1.el9pc | Fixed 2026-03-26 | RHSA-2026:5970 |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/de-minimal-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/de-minimal-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/lightspeed-rhel8 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/de-minimal-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/de-minimal-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/lightspeed-rhel8 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/de-minimal-rhel9 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/lightspeed-rhel9 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | automation-controller | Will not fix | |
| Red Hat Ansible Automation Platform 2 | python-django | Not affected | |
| 15 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-1285.