Security mailing lists by PureSourceCode

CVE-2023-43665

HIGH 7.5CVSS 3.1

Django Denial-of-service in django.utils.text.Truncator

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.

Published
3 Nov 2023
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-1284CWE-400
Also known as
BIT-django-2023-43665GHSA-h8gc-pgj2-vjm3PYSEC-2023-226
Sources
NVDJSONOSV GHSA-h8gc-pgj2-vjm3JSONOSV PYSEC-2023-226JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 MEDIUM 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 3.2, < 3.2.22 3.2.22
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 4.1, < 4.1.12 4.1.12
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 4.2, < 4.2.6 4.2.6
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*
= 39
OSV PyPI django >= 3.2a1, < 3.2.22 3.2.22
OSV PyPI django >= 4.1a1, < 4.1.12 4.1.12
OSV PyPI django >= 4.2a1, < 4.2.6 4.2.6
OSV PyPI django >= 3.2, < 3.2.22; >= 4.1, < 4.1.12; >= 4.2, < 4.2.6 3.2.22, 4.1.12, 4.2.6

References

History

  • 25 Nov 2026 20:37 UTC · NVD: first stored (published 3 Nov 2023)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Nov 2023)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Nov 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.