Bug 2512940

Summary: CVE-2026-15920 python-django5: Django: Cross-site scripting via unvalidated URLField values in the admin [fedora-all]
Product: [Fedora] Fedora Reporter: Ganesh <gnaik>
Component: python-django5Assignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 45CC: michel, python-packagers-sig
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["69a66c3c-d551-438e-890e-fdca18362226"]}
Fixed In Version: python-django5-5.2.17-2.fc45 python-django5-5.2.17-2.fc43 python-django5-5.2.17-2.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-09-18 00:16:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2511091    

Description Ganesh 2026-08-09 17:23:07 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:49:58 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.

Comment 2 Fedora Update System 2026-09-09 17:25:26 UTC
FEDORA-2026-301e6e2983 (python-django5-5.2.17-2.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-301e6e2983

Comment 3 Fedora Update System 2026-09-09 17:25:32 UTC
FEDORA-2026-6b28b4e483 (python-django5-5.2.17-2.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-6b28b4e483

Comment 4 Fedora Update System 2026-09-09 17:25:37 UTC
FEDORA-2026-950089270f (python-django5-5.2.17-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-950089270f

Comment 5 Fedora Update System 2026-09-10 01:47:29 UTC
FEDORA-2026-301e6e2983 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-301e6e2983`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-301e6e2983

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2026-09-10 02:07:40 UTC
FEDORA-2026-6b28b4e483 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-6b28b4e483`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-6b28b4e483

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-09-10 02:18:13 UTC
FEDORA-2026-950089270f has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-950089270f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-950089270f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2026-09-18 00:16:12 UTC
FEDORA-2026-950089270f (python-django5-5.2.17-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2026-09-18 01:02:02 UTC
FEDORA-2026-6b28b4e483 (python-django5-5.2.17-2.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2026-09-18 01:16:12 UTC
FEDORA-2026-301e6e2983 (python-django5-5.2.17-2.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.