CVE-2024-53907
JSON

7.5high

Django denial-of-service in django.utils.html.strip_tags()

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.39% (higher than 73% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-8498-2h75-472jBIT-DJANGO-2024-53907PYSEC-2024-156

Description

An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. The strip_tags() method and striptags template filter are subject to a potential denial-of-service attack via certain inputs containing large sequences of nested incomplete HTML entities.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
djangoproject djangofrom 5.1 before 5.1.4, from 5.0 before 5.0.10, from 4.2 before 4.2.17CVE List, NVD
django (PyPI)from 5.1.0 before 5.1.4, from 4.2.0 before 4.2.17, from 5.0.0 before 5.0.10, from 5.1 before 5.1.4, from 5.0 before 5.0.10, from 4.2 before 4.2.17GitHub Advisory Database, PyPA Advisory Database
django (Bitnami)from 4.2.0 before 4.2.17, from 5.0.0 before 5.1.4Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U
Bitnami Vulnerability Databasehigh rating

Classification

CWE-770

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. The strip_tags() method and striptags template filter are subject to a potential denial-of-service attack via certain inputs containing large sequences of nested incomplete HTML entities.

NVD (es)

Se descubrió un problema en Django 5.1 anterior a 5.1.4, 5.0 anterior a 5.0.10 y 4.2 anterior a 4.2.17. El método strip_tags() y el filtro de plantilla striptags están sujetos a un posible ataque de denegación de servicio a través de ciertas entradas que contienen secuencias grandes de entidades HTML incompletas anidadas.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-53907 changed 2024-12-31CVE Terms of Use
GitHub Advisory DatabaseGHSA-8498-2h75-472j changed 2026-09-10CC-BY-4.0
NVDCVE-2024-53907 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-156 changed 2026-06-10CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2024-53907 changed 2026-09-08Apache-2.0