{"cve":"CVE-2023-43665","nvd":{"published":"2023-11-03T05:15:30.047","modified":"2026-06-17T06:26:11.360","status":"Modified","description":"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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-1284"],"references":["http://www.openwall.com/lists/oss-security/2024/03/04/1","https://docs.djangoproject.com/en/4.2/releases/security/","https://groups.google.com/forum/#%21forum/django-announce","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/"],"products":["djangoproject:django","fedoraproject:fedora"],"source":"nvd","synced_at":"2026-10-19T21:40:11.519948003+00:00"},"epss":{"cve":"CVE-2023-43665","score":0.01462,"percentile":0.73615,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h8gc-pgj2-vjm3","url":"https://osv.dev/vulnerability/GHSA-h8gc-pgj2-vjm3","summary":"Django Denial-of-service in django.utils.text.Truncator","modified":"2025-11-04T20:42:38.556437Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.2a1 <3.2.22"],"fixed":["3.2.22"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.1a1 <4.1.12"],"fixed":["4.1.12"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=4.2a1 <4.2.6"],"fixed":["4.2.6"]}]},{"id":"PYSEC-2023-226","url":"https://osv.dev/vulnerability/PYSEC-2023-226","summary":"","modified":"2026-06-10T17:01:03.986909758Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.2 <3.2.22",">=4.1 <4.1.12",">=4.2 <4.2.6"],"fixed":["3.2.22","4.1.12","4.2.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}