CVE-2018-7536
Django denial-of-service possibility in urlize and urlizetrunc template filters
Reported by mitre · Published March 9, 2018
Django is fixed in 2.0.3, 1.11.11 and 1.8.19 (PyPI)
An issue was discovered in Django 2.0 before 2.0.3, 1.11 before 1.11.11, and 1.8 before 1.8.19. The django.utils.html.urlize() function was extremely slow to evaluate certain inputs due to catastrophic backtracking vulnerabilities in two regular expressions (only one regular expression for Django 1.8.x). The urlize() function is used to implement the urlize and urlizetrunc template filters, which were thus vulnerable.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Django | PyPI | 2.0.3, 1.11.11, 1.8.19 |
| py-django | Alpine | 1.11.11-r0, 1.8.19-r0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| alpine | py-django | 0, 0 |
| n/a | n/a | * |
| arch | python-django | 0 |
| PyPI | Django | 2.0a1, 1.11a1, 1.8a1 |
| alpine | py3-django | 0 |
| PyPI | Django |
Timeline
- Mar 6, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Mar 6, 2026 Distribution Patch (6 in total, the first dated here)
- Mar 6, 2026 Security Advisory (8 in total, the first dated here)
- Sep 19, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-7536
vulnetix vdb fixes CVE-2018-7536
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-7536/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- USN-3591-1 vendor-advisory
- RHSA-2019:0051 vendor-advisory
- [debian-lts-announce] 20180308 [SECURITY] [DLA 1303-1] python-django security update mailing-list
- 103361 vdb-entry
- RHSA-2019:0082 vendor-advisory
- RHSA-2018:2927 vendor-advisory
- RHSA-2019:0265 vendor-advisory
- DSA-4161 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-7536 advisory
- https://github.com/advisories/GHSA-r28v-mw67-m5p9 advisory
- https://github.com/django/django url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2018-5.yaml advisory
- https://usn.ubuntu.com/3591-1 url
- https://web.archive.org/web/20200227131019/http://www.securityfocus.com/bid/103361 url
- https://www.djangoproject.com/weblog/2018/mar/06/security-releases url