An issue was discovered in Django 4.2 before 4.2.21, 5.1 before 5.1.9, and 5.2 before 5.2.1. The django.utils.html.striptags() function is vulnerable to a potential denial-of-service (slow performance) when processing inputs containing large sequences of incomplete HTML tags. The template filter striptags is also vulnerable, because it is built on top of striptags().
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32873.json",
"cna_assigner": "mitre",
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "4.2"
},
{
"fixed": "4.2.21"
},
{
"introduced": "5.1"
},
{
"fixed": "5.1.9"
},
{
"introduced": "5.2"
},
{
"fixed": "5.2.1"
}
],
"source": "AFFECTED_FIELD"
},
{
"extracted_events": [
{
"introduced": "4.2"
},
{
"fixed": "4.2.21"
},
{
"introduced": "5.1"
},
{
"fixed": "5.1.9"
},
{
"introduced": "5.2"
},
{
"fixed": "5.2.1"
}
],
"source": "CPE_FIELD"
},
{
"extracted_events": [
{
"introduced": "4.2"
},
{
"fixed": "4.2.21"
},
{
"introduced": "5.1"
},
{
"fixed": "5.1.9"
},
{
"introduced": "5.2"
},
{
"fixed": "5.2.1"
}
],
"source": "DESCRIPTION"
}
],
"cwe_ids": [
"CWE-770"
]
}{
"extracted_events": [
{
"introduced": "4.2.0"
},
{
"fixed": "4.2.21"
},
{
"introduced": "0"
},
{
"last_affected": "5.2"
},
{
"introduced": "5.1"
},
{
"fixed": "5.1.9"
}
],
"cpe": [
"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"cpe:2.3:a:djangoproject:django:5.2:*:*:*:*:*:*:*"
],
"source": [
"CPE_RANGE",
"CPE_STRING"
]
}