CVE catalog

CVE-2026-15920

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

[CVE catalog]

Severity
Medium · CVSS 5.4CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.35% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-djangosid3:5.2.18-1fixed
Debianpython-djangoforky3:5.2.17-2fixed
Debianpython-djangotrixie3:4.2.28-0+deb13u2vulnerable
Debianpython-djangotrixie-security3:4.2.28-0+deb13u1vulnerable
Debianpython-djangobookworm3:3.2.25-0+deb12u3vulnerable
Debianpython-djangobookworm-security3:3.2.25-0+deb12u6fixed
CpedjangoNot reported6.0.8fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-djangosourcesid3:5.2.17-1not yet assignedNot reported[1143611]
Debianpython-djangosourceforky3:5.2.17-1not yet assignedNot reported[1143611]
Debianpython-djangosourcetrixie(unfixed)not yet assignedNot reported[1143611]
Debianpython-djangosourcebookworm3:3.2.25-0+deb12u4not yet assignedNot reported[1143611]
CpedjangocpeNot reported6.0.8Not reportedNVD-CVE-2026-15920Not reported

[Debian bug #1143611]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-django]Affected

    Source package: [python-django]

    Details (6)
    • 3:3.2.25-0+deb12u3 · all · bookworm

      Affected · Fixed: 3:3.2.25-0+deb12u4

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:3.2.25-0+deb12u3 · all · bookworm

      Affected · Fixed: 3:3.2.25-0+deb12u4

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 3:3.2.25-0+deb12u4

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 3:3.2.25-0+deb12u4

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 3:3.2.25-0+deb12u4

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 3:3.2.25-0+deb12u4

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

  • Source package: [python-django]

    Details (6)
    • 3:3.2.25-0+deb12u3 · all · bookworm

      Affected · Fixed: 3:3.2.25-0+deb12u4

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:3.2.25-0+deb12u3 · all · bookworm

      Affected · Fixed: 3:3.2.25-0+deb12u4

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 3:3.2.25-0+deb12u4

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 3:3.2.25-0+deb12u4

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 3:3.2.25-0+deb12u4

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Fixed · Fixed: 3:3.2.25-0+deb12u4

      nvd · python-django · debian · bookworm; nvd · python-django · debian · 12

[Debian 13 (Trixie)]

  • [python3-django]Affected

    Source package: [python-django]

    Details (6)
    • 3:4.2.28-0+deb13u2 · all · trixie

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u2 · all · trixie

      Affected

      nvd · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Affected

      nvd · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Affected

      nvd · python-django · debian · 13

  • Source package: [python-django]

    Details (6)
    • 3:4.2.28-0+deb13u2 · all · trixie

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u2 · all · trixie

      Affected

      nvd · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Affected

      nvd · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Affected

      nvd · python-django · debian · 13

Observed:

References