Django versions prior to 4.2.20, 5.0.13, and 5.1.7 contain a vulnerability in the django.utils.text.wrap() method and the wordwrap template filter. This flaw allows a potential denial-of-service (DoS) attack when processing very long strings, leading to resource exhaustion. The issue is fixed in the specified patched versions.