Intel

AIKIDO-2026-672293

Django is vulnerable to Cross-Site Scripting (XSS)

CVE-2026-15920Published Aug 7, 2026
August 7, 2026

61

CVE Score

Medium

Cross-Site Scripting (XSS)

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.

How do I fix this?

Upgrade the Django library to the patch version.

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.

Package

Versions

5.2.0 - 5.2.16

Fixed in 5.2.17

6.0.0 - 6.0.7

Fixed in 6.0.8

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.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea