CVE-2026-15920: djangoproject Django · Improper Neutralization of Script in Attributes in a Web Page
Affects djangoproject DjangoSource CVE Database V5
Not known to be exploited · CVSS 6.1 Medium : upgrade to 6.0.8 or 5.2.17 when convenient.
Data as of 3 Nov 2026, 22:58 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 29% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.0.8, 5.2.17
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 4 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Nov 2026.
What to do
Upgrade Django and django to 6.0.8 or 5.2.17.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| djangoprojectDjango | Affected
| Fixed in
|
| djangoprojectDjango | Affected
| Fixed in
|
PyPIdjangopkg:pypi/djangoOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Django versions 5.2.17 and 6.0.8 and later. Users should upgrade to these or newer versions to remediate this vulnerability. Until upgraded, ensure that URLField data is always validated through model validation before being saved to the database to prevent unsafe URL schemes from being stored. Avoid direct database writes or bulk imports of untrusted URLField data without validation.
Description
An issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8. `django.contrib.admin.utils.display_for_field()` renders `URLField` values as clickable links in the admin without validating the URL. A value stored with an unsafe scheme is displayed as a link on changelist and read-only admin pages, which allows cross-site scripting against staff users who click the link. Exploitation requires the unsafe value to already be stored in the database. `URLField` validation through a `ModelForm` or the admin rejects unsafe schemes, so this affects applications that persist `URLField` data without running model validation, for example through direct queryset writes, deserialization, or bulk import of untrusted input. Django would like to thank Egor Saltykov for reporting this issue.
References
- docs.djangoproject.com/en/dev/releases/security/ (opens in a new tab)
- groups.google.com/g/django-announce (opens in a new tab)
- github.com/django/django/commit/47511a21026cdd721d8fbf8571cc079bc38bb46d (opens in a new tab)
- github.com/django/django/commit/5a260d309a4c8010c2ebda24eb758a5d95e2508a (opens in a new tab)
- github.com/django/django/commit/13debb622a32720bda1bccda7622fd14fbf3931b (opens in a new tab)
- github.com/django/django/commit/b9adb81339cc418f8f56b1050cca6dfec3ab6349 (opens in a new tab)
- djangoproject.com/weblog/2026/aug/04/security-releases/ (opens in a new tab)