Django versions 5.0 prior to 5.0.8 and 4.2 prior to 4.2.15 contain a vulnerability in the urlize() and urlizetrunc() template filters that can be exploited to cause a denial-of-service (DoS) condition. This occurs when processing very large inputs containing a specific sequence of characters. The issue has been fixed in versions 5.0.8 and 4.2.15.