CVE-2023-43665 in Djangoproject Django and 1 more product
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 ar...
Affects 2 products from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Djangoproject | Django | ≥ 3.2, < 3.2.22 ≥ 4.1, < 4.1.12 ≥ 4.2, < 4.2.6 |
| Fedoraproject | Fedora | 39 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-43665 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-345875-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2023-11-03 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-1284: CWE-1284
Analysis AI-written, not human-reviewed
A potential DoS attack can be executed against Django applications using the django.utils.text.Truncator chars() and words() methods with html=True, affecting versions before 3.2.22, 4.1.12, and 4.2.6.
The vulnerability arises from the improper handling of very long, potentially malformed HTML text by the chars() and words() methods when html=True is specified. This can lead to excessive resource consumption, resulting in a denial of service.
Questions
What is CVE-2023-43665?
A potential DoS attack can be executed against Django applications using the django.utils.text.Truncator chars() and words() methods with html=True, affecting versions before 3.2.22, 4.1.12, and 4.2.6.
What is the CVSS score for CVE-2023-43665?
CVE-2023-43665 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 1.5%.
Is CVE-2023-43665 actively exploited?
No confirmed active exploitation of CVE-2023-43665 as of 2026-09-25.
How do I remediate CVE-2023-43665?
Priority: HIGH. Advisory: https://docs.djangoproject.com/en/4.2/releases/security/
What systems are affected by CVE-2023-43665?
CVE-2023-43665 affects Djangoproject Django; Fedoraproject Fedora.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Djangoproject","product":"Django","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.