Bug 2512941 - CVE-2026-15920 python-django6: Django: Cross-site scripting via unvalidated URLField values in the admin [fedora-all]
Summary: CVE-2026-15920 python-django6: Django: Cross-site scripting via unvalidated U...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-django6
Version: 45
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Michel Lind
QA Contact:
URL:
Whiteboard: {"flaws": ["69a66c3c-d551-438e-890e-f...
Depends On:
Blocks: CVE-2026-15920
TreeView+ depends on / blocked
 
Reported: 2026-08-09 17:23 UTC by Ganesh
Modified: 2026-08-17 15:50 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ganesh 2026-08-09 17:23:11 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Aoife Moloney 2026-08-17 15:50:00 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.


Note You need to log in before you can comment on or make changes to this bug.