cve.bz

CVE-2026-15920 djangoproject django

5.1 mediumEPSS 0.4%Fix available

Medium (5.1) in djangoproject django. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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

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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 30th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-83 Improper Neutralization of Script in Attributes in a Web Page
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-15920 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-15920?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-15920?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-15920 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-15920

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-15920](https://cve.bz/cve/badge/CVE-2026-15920.svg)](https://cve.bz/cve/CVE-2026-15920)

HTML:

<a href="https://cve.bz/cve/CVE-2026-15920"><img src="https://cve.bz/cve/badge/CVE-2026-15920.svg" alt="CVE-2026-15920"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
djangoproject Djangofrom 6.0 before 6.0.8
djangoproject Djangofrom 5.2 before 5.2.17

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python-django3:3.2.25-0+deb12u4DEBIAN-CVE-2026-15920
Debian13python-djangono fix listedDEBIAN-CVE-2026-15920
Debian14python-django3:5.2.17-1DEBIAN-CVE-2026-15920
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTS and 5 morepython-djangono fix listedUBUNTU-CVE-2026-15920
SUSELinux Enterprise Module for Package Hub 15 SP7python-Django4.2.11-150600.3.65.1SUSE-SU-2026:3503-1
openSUSELeap 16.0python-Django5.2.4-bp160.11.1openSUSE-SU-2026:21543-1
openSUSETumbleweedpython-Django6.0.8-1.1openSUSE-SU-2026:11464-1
openSUSETumbleweedpython-Django44.2.30-5.1openSUSE-SU-2026:11465-1
openSUSETumbleweedpython-Django55.2.17-1.1openSUSE-SU-2026:11491-1
Alpinev3.24py3-django5.2.17-r0ALPINE-CVE-2026-15920

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This Moderate severity cross-site scripting (XSS) vulnerability in Django's administrative interface affects Red Hat products utilizing Django, such as Red Hat Ansible Automation Platform and Red Hat Satellite. The flaw occurs when `URLField` values are rendered as clickable links without proper validation, allowing a stored malicious URL to execute arbitrary scripts if clicked by a staff user. Exploitation is contingent on an unsafe URL already being present in the database, typically due to applications persisting `URLField` data without model validation.

Red Hat's mitigation

To mitigate this issue, ensure that all applications persisting `URLField` data into the Django database perform proper model validation. This is especially critical for data imported via direct queryset writes, deserialization, or bulk import processes, which may bypass standard `ModelForm` or admin validation. Implementing robust input validation at the application level for all `URLField` inputs will prevent the storage of malicious URLs.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/controller-rhel8Out of support scope
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/eda-controller-rhel8Out of support scope
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/hub-rhel8Out of support scope
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/lightspeed-rhel8Out of support scope
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ansible-dev-tools-rhel8Out of support scope
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/controller-rhel8Out of support scope
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/eda-controller-rhel8Out of support scope
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/gateway-rhel8Out of support scope
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/hub-rhel8Out of support scope
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/lightspeed-rhel8Out of support scope
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/ansible-dev-tools-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/controller-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/eda-controller-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/gateway-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/hub-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/lightspeed-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/aap-cloud-billing-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/ansible-dev-tools-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/controller-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/eda-controller-rhel9Fix deferred
18 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-15920.

Attack patterns (CAPEC)

  • CAPEC-243 XSS Targeting HTML Attributes Severity: Medium
  • CAPEC-244 XSS Targeting URI Placeholders Likelihood: High · Severity: High
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON