In Django 3.2 before 3.2.22, 4.1 before 4.1.12, and 4.2 before 4.2.6, the django.utils.text.Truncator chars() and words() methods (when used with html=True) are subject to a potential DoS (denial of service) attack via certain inputs with very long, potentially malformed HTML text. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which are thus also vulnerable. NOTE: this issue exists because of an incomplete fix for CVE-2019-14232.
CVSS Details
- CVSS 3.1 Base Score: 7.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade py3-django | Aug 22, 2024 | Nov 3, 2023 |
| Debian | — | Upgrade python-django | May 15, 2025 | Nov 3, 2023 |
| Freebsd | — | Upgrade py39-django42Upgrade py311-django41Upgrade py39-django41Upgrade py39-django32Upgrade py310-django41Upgrade py311-django42Upgrade py310-django42Upgrade py311-django32Upgrade py310-django32 | Dec 10, 2025 | Oct 5, 2023 |
| Suse | — | Upgrade python3-djangoUpgrade python3-Django1 | Oct 18, 2023 | Oct 17, 2023 |
| Ubuntu | — | Upgrade python3-django (Ubuntu Pro)Upgrade python3-django | Oct 6, 2023 | Oct 4, 2023 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub