In Django 3.2 before 3.2.25, 4.2 before 4.2.11, and 5.0 before 5.0.3, the django.utils.text.Truncator.words() method (with html=True) and the truncatewords_html template filter are subject to a potential regular expression denial-of-service attack via a crafted string. NOTE: this issue exists because of an incomplete fix for CVE-2019-14232 and CVE-2023-43665.
CVSS Details
- CVSS 3.1 Base Score: 5.3
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/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 | Mar 15, 2024 |
| Debian | — | Upgrade python-django | May 15, 2025 | Mar 15, 2024 |
| Freebsd | — | Upgrade py39-django32Upgrade py311-django32Upgrade py310-django42Upgrade py310-django32Upgrade py311-django42Upgrade py311-django50Upgrade py310-django50Upgrade py39-django42 | Dec 10, 2025 | Mar 4, 2024 |
| Gentoo Linux | — | Upgrade dev-python/django. | Sep 18, 2025 | Sep 17, 2025 |
| Suse | — | Upgrade python3-Django1Upgrade python3-django | Mar 12, 2024 | Mar 11, 2024 |
| Ubuntu | — | Upgrade python3-djangoUpgrade python3-django (Ubuntu Pro)Upgrade python-django (Ubuntu Pro) | Mar 5, 2024 | Mar 4, 2024 |
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