# CVE-2026-15920: Potential cross-site scripting via URLField values in the admin

- Severity: Medium 5.1 (CVSS:4.0, scored by DSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-08-04T15:48:40.537Z
- Modified: 2026-10-24T16:10:00.153Z
- Also known as: BIT-DJANGO-2026-15920
- Weaknesses: CWE-83
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: DSF

## 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.

(As written by CVE List.)

## Affected

- django: from 6.0 before 6.0.8; from 5.2 before 5.2.17 (not affected: 6.0.8; 5.2.17)
- djangoproject django: from 5.2 before 5.2.17; from 6.0 before 6.0.8
- django (Bitnami): from 5.2.0 before 5.2.17; from 6.0.0 before 6.0.8

## Every score

- DSF: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- DSF: CVSS:4.0 5.1 Medium `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`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://docs.djangoproject.com/en/dev/releases/security/> (advisory, patch, vendor-advisory)
- <https://groups.google.com/g/django-announce> (discussion, mailing-list)
- <https://github.com/django/django/commit/47511a21026cdd721d8fbf8571cc079bc38bb46d> (fix, patch)
- <https://github.com/django/django/commit/5a260d309a4c8010c2ebda24eb758a5d95e2508a> (fix, patch)
- <https://github.com/django/django/commit/13debb622a32720bda1bccda7622fd14fbf3931b> (fix, patch)
- <https://github.com/django/django/commit/b9adb81339cc418f8f56b1050cca6dfec3ab6349> (fix, patch)
- <https://www.djangoproject.com/weblog/2026/aug/04/security-releases/> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-15920> (web)

## Sources

- CVE List: [CVE-2026-15920](https://www.cve.org/CVERecord?id=CVE-2026-15920), CVE Terms of Use, modified 2026-08-04
- NVD: [CVE-2026-15920](https://nvd.nist.gov/vuln/detail/CVE-2026-15920), Public domain, modified 2026-10-24
- Bitnami Vulnerability Database: [BIT-DJANGO-2026-15920](https://osv.dev/vulnerability/BIT-DJANGO-2026-15920), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-15920 · Whole record: https://cve.day/CVE-2026-15920.json · Rebuilt by cve.day 2026-11-25T22:59:30.983Z
