CVE-2024-53907

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

Published Dec 6, 2024 CVSS 3.1 · 7.5 High EPSS 1.4% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4006-1 python-django security update
Debian DSA Debian DSA DSA-6136-1 python-django security update
EUVD EUVD EUVD-2024-0048 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.
Github GHSA Github GHSA GHSA-8498-2h75-472j Django denial-of-service in django.utils.html.strip_tags()
Ubuntu USN Ubuntu USN USN-7136-1 Django vulnerabilities
Ubuntu USN Ubuntu USN USN-7136-2 Django vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00173}

epss

{'score': 0.00194}

Type Values Removed Values Added
CPEs cpe:/o:redhat:discovery:1::el9 cpe:/o:redhat:discovery:1.0::el9
Type Values Removed Values Added
First Time appeared Redhat ansible Automation Platform Developer
Redhat discovery
CPEs cpe:/a:redhat:ansible_automation_platform_developer:2.5::el8
cpe:/a:redhat:ansible_automation_platform_developer:2.5::el9
cpe:/o:redhat:discovery:1::el9
Vendors & Products Redhat ansible Automation Platform Developer
Redhat discovery
Type Values Removed Values Added
First Time appeared Redhat
Redhat ansible Automation Platform
CPEs cpe:/a:redhat:ansible_automation_platform:2.4::el8
cpe:/a:redhat:ansible_automation_platform:2.4::el9
cpe:/a:redhat:ansible_automation_platform:2.5::el8
cpe:/a:redhat:ansible_automation_platform:2.5::el9
Vendors & Products Redhat
Redhat ansible Automation Platform
Type Values Removed Values Added
First Time appeared Djangoproject
Djangoproject django
Weaknesses CWE-770
CPEs cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
Vendors & Products Djangoproject
Djangoproject django
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Description A vulnerability was found in the Django Web Framework. The strip_tags() and stripbtags template filter may be vulnerable to a potential denial of service (DoS) in cases of a large sequence of nested incomplete HTML entities. 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.
References
Type Values Removed Values Added
Description A vulnerability was found in the Django Web Framework. The strip_tags() and stripbtags template filter may be vulnerable to a potential denial of service (DoS) in cases of a large sequence of nested incomplete HTML entities.
Title django: Potential denial-of-service in django.utils.html.strip_tags()
Weaknesses CWE-1169
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Dec 31, 2024, 6:03 PM
Reserved
Nov 24, 2024, 12:00 AM
Status
Analyzed
Published
Dec 6, 2024, 12:15 PM
Modified
Jun 17, 2026, 8:09 AM
Severity
Moderate
Public date
Dec 4, 2024, 12:00 AM