Skip to main content
VulnerabilityPublished

CVE-2026-15920: djangoproject Django · Improper Neutralization of Script in Attributes in a Web Page

Affects djangoproject DjangoSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.1 Medium : upgrade to 6.0.8 or 5.2.17 when convenient.

Data as of 3 Nov 2026, 22:58 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 29% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 6.0.8, 5.2.17
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Nov 2026.

What to do

Upgrade Django and django to 6.0.8 or 5.2.17.

Affected software

ProductAffectedFixed in
djangoprojectDjangoAffected
  • >=6.0 <6.0.8
Fixed in
  • 6.0.8
djangoprojectDjangoAffected
  • >=5.2 <5.2.17
Fixed in
  • 5.2.17
PyPIdjangopkg:pypi/djangoOther threatsAffected
  • >=6.0 <6.0.8
  • >=5.2 <5.2.17
Fixed in
  • 6.0.8
  • 5.2.17

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in Django versions 5.2.17 and 6.0.8 and later. Users should upgrade to these or newer versions to remediate this vulnerability. Until upgraded, ensure that URLField data is always validated through model validation before being saved to the database to prevent unsafe URL schemes from being stored. Avoid direct database writes or bulk imports of untrusted URLField data without validation.

Description

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.

References

Community reviews

Loading reviews…