GitHub Advisory Database
GHSA-p3fp-8748-vqfq
Django Vulnerable to Allocation of Resources Without Limits or Throttling
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 4.2 before 4.2.20 (fixed in 4.2.20) |
| PyPI | django | From 5.0 before 5.0.13 (fixed in 5.0.13) |
| PyPI | django | From 5.1 before 5.1.7 (fixed in 5.1.7) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-26699
- https://github.com/django/django/commit/4f2765232336b8ad0afd8017d9d912ae93470017
- https://github.com/django/django/commit/8dbb44d34271637099258391dfc79df33951b841
- https://github.com/django/django/commit/e88f7376fe68dbf4ebaf11fad1513ce700b45860
- https://docs.djangoproject.com/en/dev/releases/security
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-13.yaml
- https://groups.google.com/g/django-announce
- https://lists.debian.org/debian-lts-announce/2025/03/msg00012.html
- https://www.djangoproject.com/weblog/2025/mar/06/security-releases
- http://www.openwall.com/lists/oss-security/2025/03/06/12