CVE-2026-15920
published medium CVSS 4.0 · 5.1Potential cross-site scripting via URLField values in the admin
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| djangoproject | — | djangoDjango · 6.0 to < 6.0.8 (affected · python) · 6.0.8 (unaffected · python) · 5.2 to < 5.2.17 (affected · python) · 5.2.17 (unaffected · python) · Other versions: unaffected | Version-specific | Not stated | DSF |
| Alpine Linux | edge | py3-django | Fixed | 5.2.17-r0 | Package fix record |
| Debian | bookworm | python-django | Advisory build | 3:3.2.25-0+deb12u4 | DLA-4736-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-Djangonoarch | Advisory build | 4.2.11-150600.3.65.1 | SUSE-SU-2026:3503-1 |
| Alpine Linux | v3.24 | py3-django | Fixed | 5.2.17-r0 | Package fix record |
| Debian | bullseye | python-django | Advisory build | 2:2.2.28-1~deb11u13 | DLA-4736-1 |
| Debian | trixie | python-django | Advisory build | 3:4.2.30-0+deb13u1 | DSA-6648-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-Djangonoarch | Advisory build | 5.2.4-bp160.11.1 | OPENSUSE-SU-2026:21543-1 |
Show 24 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangoaarch64 | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangoppc64le | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangos390x | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangox86_64 | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4aarch64 | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4ppc64le | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4s390x | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4x86_64 | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5aarch64 | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5ppc64le | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5s390x | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5x86_64 | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Djangoaarch64 | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Djangoppc64le | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Djangos390x | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Djangox86_64 | Advisory build | 6.0.8-1.1 | OPENSUSE-SU-2026:11464-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4aarch64 | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4ppc64le | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4s390x | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4x86_64 | Advisory build | 4.2.30-5.1 | OPENSUSE-SU-2026:11465-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5aarch64 | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5ppc64le | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5s390x | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5x86_64 | Advisory build | 5.2.17-1.1 | OPENSUSE-SU-2026:11491-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- DSF · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | DSF · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| djangoproject | Django | 6.0 to < 6.0.8 (affected · python)6.0.8 (unaffected · python)5.2 to < 5.2.17 (affected · python)5.2.17 (unaffected · python)Default: unaffected | DSF · cna |
Weaknesses
1- CWE-83 CWE-83: Improper Neutralization of Script in Attributes in a Web Page
References
7- Django security archive https://docs.djangoproject.com/en/dev/releases/security/
- https://github.com/django/django/commit/13debb622a32720bda1bccda7622fd14fbf3931b
- https://github.com/django/django/commit/47511a21026cdd721d8fbf8571cc079bc38bb46d
- https://github.com/django/django/commit/5a260d309a4c8010c2ebda24eb758a5d95e2508a
- https://github.com/django/django/commit/b9adb81339cc418f8f56b1050cca6dfec3ab6349
- Django releases announcements https://groups.google.com/g/django-announce
- Django security releases issued: 6.0.8 and 5.2.17 https://www.djangoproject.com/weblog/2026/aug/04/security-releases/
Provider assertions
2DSF · cna
Potential cross-site scripting via URLField values in the admin
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6c2572cbdf15a9c9b4f9b9ff9fd2d604774f03adf5d25d3c8c3a8d862ed339a1
- Ingested
- 23 Sep 2026, 09:02:32 UTC
- Source record
- Official CVE record