PyPA Advisory Database
PYSEC-2025-13
Details
An issue was discovered in Django 5.1 before 5.1.7, 5.0 before 5.0.13, and 4.2 before 4.2.20. The django.utils.text.wrap() method and wordwrap template filter are subject to a potential denial-of-service attack when used with very long strings.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | django | From 5.1 before 5.1.7 (fixed in 5.1.7) From 5.0 before 5.0.13 (fixed in 5.0.13) From 4.2 before 4.2.20 (fixed in 4.2.20) |
References
- https://www.djangoproject.com/weblog/2025/mar/06/security-releases/
- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/g/django-announce
- http://www.openwall.com/lists/oss-security/2025/03/06/12
- https://lists.debian.org/debian-lts-announce/2025/03/msg00012.html
- https://github.com/advisories/GHSA-p3fp-8748-vqfq