BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2023-43665 in Djangoproject Django and 1 more product

High 7.5

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.

CVSS 3.17.5
EPSS1.5%
EPSS percentile75th
FixSee advisory

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

VendorProductAffected 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

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot 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 IDCVE-2023-43665
BreachSpider IDBS-2023-GLOBAL-345875-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2023-11-03
Last modified2026-06-17
Weakness (CWE)
SourceNVD

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"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.