CVE-2023-43665Djangoproject Django
High 7.5 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 75
- Auth required
- No
- Published
- Nov 3, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1284
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
≥ 3.2a1 < 3.2.22 |
3.2.22 |
pip install "django>=3.2.22" |
| PyPI | django |
≥ 4.1a1 < 4.1.12 |
4.1.12 |
pip install "django>=4.1.12" |
| PyPI | django |
≥ 4.2a1 < 4.2.6 |
4.2.6 |
pip install "django>=4.2.6" |
| PyPI | django |
≥ 3.2 < 3.2.22 |
3.2.22 |
pip install "django>=3.2.22" |
| PyPI | django |
≥ 4.1 < 4.1.12 |
4.1.12 |
pip install "django>=4.1.12" |
| PyPI | django |
≥ 4.2 < 4.2.6 |
4.2.6 |
pip install "django>=4.2.6" |
Per OSV / GitHub Advisories (GHSA-h8gc-pgj2-vjm3, PYSEC-2023-226). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 3.2 < 3.2.22 |
| djangoproject | django | ≥ 4.1 < 4.1.12 |
| djangoproject | django | ≥ 4.2 < 4.2.6 |
| fedoraproject | fedora | 39 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python313-Django-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11248-1 · Jul 10, 2026 Critical
- python313-Django4-4.2.30-4.1 on GA media · SUSE · openSUSE-SU-2026:11235-1 · Jul 9, 2026 Critical
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com
- docs.djangoproject.com Patch Vendor Advisory
- groups.google.com Permissions Required
- lists.fedoraproject.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- security.netapp.com
- www.djangoproject.com Vendor Advisory
- lists.fedoraproject.org