Vulnerabilities · 2023 · Djangoproject
CVE-2023-43665
Djangoproject Django vulnerability
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.
Affected products
Django, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Djangoproject Django runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- docs.djangoproject.com/en/4.2/releases/security/ · Patch
- www.djangoproject.com/weblog/2023/oct/04/security-releases/ · Vendor Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2023-43665
- groups.google.com/forum/#!forum/django-announce
- github.com/django/django/commit/be9c27c4d18c2e6a5be8af4e53c0797440794473
- github.com/django/django/commit/c7b7024742250414e426ad49fb80db943e7ba4e8
- github.com/django/django/commit/ccdade1a0262537868d7ca64374de3d957ca50c5
- nvd.nist.gov/vuln/detail/CVE-2023-43665
- cve.org/CVERecord?id=CVE-2023-43665
More vulnerabilities in Djangoproject products
CVE-2026-1312CVE-2026-1287CVE-2026-1285CVE-2026-1207CVE-2025-64460CVE-2025-64459CVE-2025-64458CVE-2025-59682All 137
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.