Django Denial-of-service in strip_tags()
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| django PyPI |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| django PyPI |
|
|
2.2.4An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4. Due to the behaviour of the underlying HTMLParser, django.utils.html.strip_tags would be extremely slow to evaluate certain inputs containing large sequences of nested incomplete HTML entities.
From the CVE record · mitre
Django’s django.utils.html.strip_tags is extremely slow on certain inputs containing large sequences of nested incomplete HTML entities. An attacker who can supply such input to an application that calls this function could cause excessive processing. Whether this is reachable over a network, requires authentication, or involves user interaction depends on the application.
Check applications running the PyPI django package in the 1.11, 2.1, or 2.2 release lines before 1.11.23, 2.1.11, or 2.2.4, respectively, including affected prereleases.