Intel

AIKIDO-2026-672293

Django is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)CVE-2026-15920 Published Today

61

Medium Risk

This Affects:

PYTHONDjango
5.2.0 - 5.2.16
Fixed in 5.2.17
6.0.0 - 6.0.7
Fixed in 6.0.8
Are you affected? Scan for Free

TL;DR

The Django admin renders URLField values as clickable links on changelist and read-only field views through display_for_field. The link is generated without validating the stored value as a safe URL, so a value using a dangerous scheme such as javascript: is emitted. A staff user who clicks the link then executes externally influenced script in the admin, resulting in stored cross-site scripting. The fix validates the value with URLValidator and falls back to plain text when validation fails.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application persists URLField values from untrusted input without model validation and displays them in the Django admin.

Background info

Django is vulnerable to Cross-Site Scripting (XSS) in versions 5.2.0 - 5.2.16 and 6.0.0 - 6.0.7.

How to fix this

Upgrade the Django library to the patch version.