Vulnerability · Published Mar 6, 2025 · Assigned by mitre
CVE-2025-26699
Medium 5.0
In plain English
A medium-severity resource allocation without limits in Django from djangoproject. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.0Medium
Exploit odds (30 days)0.8%top 42.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | py3-django | 4.2.20-r0 | ALPINE-CVE-2025-26699 |
| Alpine:v3.22 | py3-django | 4.2.20-r0 | ALPINE-CVE-2025-26699 |
| Alpine:v3.23 | py3-django | 4.2.20-r0 | ALPINE-CVE-2025-26699 |
| Alpine:v3.24 | py3-django | 4.2.20-r0 | ALPINE-CVE-2025-26699 |
| Debian:12 | python-django | 3:3.2.25-0+deb12u1 | DSA-6136-1 |
| Debian:12 | python-django | 3:3.2.25-0+deb12u1 | DEBIAN-CVE-2025-26699 |
| Debian:13 | python-django | 3:4.2.20-1 | DEBIAN-CVE-2025-26699 |
| Debian:14 | python-django | 3:4.2.20-1 | DEBIAN-CVE-2025-26699 |
| PyPI | django | 5.1.7 | GHSA-p3fp-8748-vqfq |
| PyPI | django | 4.2.20, 5.0.13, 5.1.7 | PYSEC-2025-13 |
| PyPI | django | 5.0.13 | GHSA-p3fp-8748-vqfq |
| PyPI | django | 4.2.20 | GHSA-p3fp-8748-vqfq |
| Ubuntu:22.04:LTS | python-django | 2:3.2.12-2ubuntu1.17 | USN-7335-1 |
| Ubuntu:22.04:LTS | python-django | 2:3.2.12-2ubuntu1.17 | UBUNTU-CVE-2025-26699 |
| Ubuntu:24.04:LTS | python-django | 3:4.2.11-1ubuntu1.6 | UBUNTU-CVE-2025-26699 |
| Ubuntu:24.04:LTS | python-django | 3:4.2.11-1ubuntu1.6 | USN-7335-1 |
| Ubuntu:25.10 | python-django | 3:4.2.18-1ubuntu1 | UBUNTU-CVE-2025-26699 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | Django | 4.2 – before 4.2.205.0 – before 5.0.135.1 – before 5.1.7 |
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L