CVE-2025-32873: Django: Denial-of-service possibility in strip_tags()

Published May 7, 2025
·
Updated

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().

Affected Software

8 affected componentsFixes available
Django Django
pip/Django>=5.2<5.2.1
5.2.1
pip/Django>=5.1<5.1.9
5.1.9
pip/Django>=4.2<4.2.21
4.2.21
debian/python-django<=2:2.2.28-1~deb11u2, <=2:2.2.28-1~deb11u6, <=3:3.2.19-1+deb12u1, <=3:4.2.20-1
3:4.2.21-1
djangoproject Django>=4.2.0<4.2.21
djangoproject Django>=5.1<5.1.9
djangoproject Django=5.2

Event History

May 7, 2025
Data Sourced
via Ubuntu·09:23 PM
RemedyDescriptionSeverityAffected Software
May 8, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 AM
Affected Software
Advisory Published
via GitHub·06:30 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-32873?

The severity of CVE-2025-32873 is classified as high due to the potential for remote code execution.

2

How do I fix CVE-2025-32873?

To fix CVE-2025-32873, upgrade Django and the python-django package to the latest secure versions available for your distribution.

3

What versions of Django are affected by CVE-2025-32873?

CVE-2025-32873 affects Django versions 2.2.x up to 2.2.28 and several 3.x versions including 3.2.x prior to 3.2.19.

4

Is there a workaround for CVE-2025-32873?

While upgrading is strongly recommended, a potential workaround is to restrict access to the vulnerable application components.

5

What is the impact of CVE-2025-32873 on applications?

CVE-2025-32873 can allow an attacker to execute arbitrary code in the context of the web application, leading to data breaches or system compromise.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203