{"id":"CVE-2025-32873","published":"2025-05-08T00:00:00Z","modified":"2025-05-08T14:42:25Z","title":"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","vendor":"djangoproject","product":"Django","tier":"tail","description":{"text":"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.strip_tags() 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 strip_tags().","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.1431,"percentile":0.96688,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":[]},{"url":"https://groups.google.com/g/django-announce","tags":[]},{"url":"https://www.djangoproject.com/weblog/2025/may/07/security-releases/","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2025/05/07/1","tags":[]}],"priority":{"score":28.0,"factors":[{"name":"EPSS percentile","points":19.34},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.71}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-06-03","earliestUrl":"https://github.com/Apollo-R3bot/django-vulnerability-CVE-2025-32873","repos":[{"name":"Apollo-R3bot/django-vulnerability-CVE-2025-32873","url":"https://github.com/Apollo-R3bot/django-vulnerability-CVE-2025-32873","stars":0,"created":"2025-06-03"}]},"first":{"date":"2025-06-03","source":"PoC-in-GitHub","url":"https://github.com/Apollo-R3bot/django-vulnerability-CVE-2025-32873"},"provenance":"source"},"vendorSlug":"djangoproject","affectedVersions":[{"vendor":"djangoproject","product":"Django","versions":[">= 4.2, < 4.2.21",">= 5.1, < 5.1.9",">= 5.2, < 5.2.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-05-08T14:36:22.376528Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=4.2, <4.2.21",">=5.1, <5.1.9",">=5.2, <5.2.1"],"patched":["4.2.21","5.1.9","5.2.1"],"from":["GHSA-8j24-cjrq-gr2m","PYSEC-2025-37"],"provenance":"source"}],"summary":{"text":"The flaw lies in Django's django.utils.html.strip_tags() function, present in Django 4.2 before 4.2.21, 5.1 before 5.1.9, and 5.2 before 5.2.1, and it also affects the striptags template filter because that filter is built on top of strip_tags(). An attacker who can submit input containing large sequences of incomplete HTML tags to an affected application can cause a denial of service through slow processing, with no authentication, user interaction, or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:45:33Z"},"euvd":{"id":"EUVD-2025-13952","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-56374","published":"2025-01-14","fixed":"5.1.5","kev":false},{"cve":"CVE-2025-26699","published":"2025-03-06","fixed":"5.1.7","kev":false,"link":{"from":"CVE-2025-26699","to":"CVE-2025-32873","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"4.2.20","toFixed":"4.2.21","daysApart":63}]}},{"cve":"CVE-2025-27556","published":"2025-04-02","fixed":"5.1.8","kev":false,"link":{"from":"CVE-2025-27556","to":"CVE-2025-32873","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"5.1.8","toFixed":"5.1.9","daysApart":36},{"kind":"same-code","provenance":"machine","files":["django/utils/html.py"],"commits":["https://github.com/django/django/commit/2cb311f7b069723027fb5def4044d1816d7d2afd","https://github.com/django/django/commit/39e2297210d9d2938c75fc911d45f0e863dc4821","https://github.com/django/django/commit/9f3419b519799d69f2aba70b9d25abe2e70d03e0"],"basis":"shared file"}]}},{"cve":"CVE-2025-32873","published":"2025-05-08","fixed":"5.2.1","kev":false},{"cve":"CVE-2025-48432","published":"2025-06-05","fixed":"5.2.2","kev":false,"link":{"from":"CVE-2025-32873","to":"CVE-2025-48432","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"4.2.21","toFixed":"4.2.22","daysApart":28},{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"5.2.1","toFixed":"5.2.2","daysApart":28}]}},{"cve":"CVE-2025-57833","published":"2025-09-03","fixed":"5.2.6","kev":false},{"cve":"CVE-2025-59681","published":"2025-10-01","fixed":"5.2.7","kev":false}],"package":"PyPI:Django"}}