CVE-2026-15920CWE-83

CVE-2026-15920

Medium · published August 4, 2026

CVSS v3.1
6.1
EPSS
0%
Percentile
32.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.1 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00393 · 32.5th percentile
Weakness
CWE-83 · Improper Neutralization of Script in Attributes in a Web Page
Published
2026-08-04T21:16Z
Affected products (2)
ProductVersionsFixed in
djangoproject/django≥ 5.2, < 5.2.175.2.17
djangoproject/django≥ 6.0, < 6.0.86.0.8
References (7)
EPSS history
Timeline
  • 04 AUG 15:48Z
    Potential cross-site scripting via URLField values in the admin
    cvelistv5