GHSA-8rmj-xgq5-w9qm
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit malicious javascript: URL via public form
-
DeliveryValue stored in URLField model record
-
ExploitAdmin user opens changelist or read-only view
-
ExecutionAdmin browser renders stored URL as unvalidated <a> href
-
PersistAdmin clicks link, triggering JavaScript execution
-
ImpactSession cookie or CSRF token exfiltrated to attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Attribute value escaping
|
| Exploitation Conditions | Exploitation requires two concurrent conditions: first, an attacker must have write access to a URLField - this access may be unauthenticated if the application exposes a public-facing form (e.g., user profile, business listing, bookmark submission) that saves to a model containing a |
| Impact | No CVSS vector or EPSS score was supplied in the input data, so numerical risk signals cannot be cited. Based on the Django project's own severity classification of 'moderate' and the nature of the flaw, real-world risk is context-dependent. Exploitation requires two sequential steps: (1) an attacker must be able to write a malicious URL into a URLField in the database - which may require no authentication if a public form accepts URLField input, or may require at minimum authenticated write access - and (2) a Django admin user must view the page containing that field. The admin context is high-value: successful XSS could allow session-cookie theft or CSRF token extraction, enabling full admin compromise. However, the requirement for an admin user to view and interact with the rendered link (UI:R) meaningfully limits blast radius. No KEV status, no POC code, and no EPSS data are available from the provided sources, so this cannot be assessed as a priority beyond its 'moderate' vendor classification without application-specific context (specifically: does a public form feed URLFields that appear in admin). |
| Exploit ScenarioDerived | An attacker submits a registration or profile form that accepts a 'website' URL field, entering a value such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 04, 2026
Stored cross-site scripting in Django admin's URLField rendering allows a malicious URL value (e.g., using a javascript: scheme) to be displayed as a clickable link on changelist views and read-only admin fields without scheme validation. Any application that accepts URLField input via public-facing forms and exposes those records in the Django admin is affected, covering Django 5.2 through the 6.1 release candidate. No public exploit or active exploitation (CISA KEV) has been identified at time of analysis; patches were released August 4, 2026 as Django 5.2.17 and 6.0.8.
RemediationAI
Upgrade to Django 5.2.17 or Django 6.0.8, both released August 4, 2026. Official release packages, checksums, and PGP-verified tarballs are available at https://www.djangoproject.com/download/5.2.17/tarball/ and the corresponding 6.0.8 download page. Source patches are available on GitHub commits for the main, 6.1, 6.0, and 5.2 branches (see references). If immediate upgrade is not feasible, a targeted compensating control is to audit any public-facing forms that write to models with URLField attributes and add explicit URL scheme validation (e.g., restrict to http and https only) at the form or serializer layer before data reaches the database. This does not fix the rendering flaw but eliminates the attacker's write path. Note: this workaround does not protect against malicious values already stored in the database - those must be audited and sanitized separately.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Django's admin uses display_for_field to render model field values in changelist and read-only views. For URLField, the admin wrapped the stored string value in an <a href="..."> tag without first passing it through URLValidator. This means any string value - including those using schemes such as javascript:, data:, or vbscript: - was emitted verbatim as the href attribute. The CWE class is CWE-79 (Improper Neutralization of Input During Web Page Generation / Cross-Site Scripting). The fix validates each stored URL with URLValidator before rendering a hyperlink; values that fail validation are displayed as plain text. No CPE string was provided in the input data, but affected products are confirmed as Django main, 6.1-rc, 6.0.x, and 5.2.x.
Know when Django gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-exploitable stored XSS; PR:N because a public form may provide write access; UI:R and S:C because an admin must view the link; C:L/I:L for session/data exposure in admin context.
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
2Description PRE-NVD
Executive ViewAI
Django applications accepting URL input through public forms are vulnerable to stored cross-site scripting attacks in admin interfaces, risking compromise of administrative accounts across affected organizations running Django 5.2 through 6.1 RC. Patches released August 4, 2026 provide immediate remediation for all currently supported versions.
Vendor-released patch: Django 5.2.17 and Django 6.0.8 (released August 4, 2026). For systems unable to patch immediately, validate URLField input to reject javascript: and data: URI schemes, and restrict Django admin interfaces to internal-only network access.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
The package python/cpython from 0 and before 3.6.13, from 3.7.0 and before 3.7.10, from 3.8.0 and before 3.8.8, from 3.9
In Django 1.10.x before 1.10.8 and 1.11.x before 1.11.5, HTML autoescaping was disabled in a portion of the template for
An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. Rated critical severity (CVSS 9.8), this vulne
Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input
Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover. Rated critical severity (CVSS 9.8
An authentication/authorization bypass in the djust Python live-view framework (versions prior to 1.0.7) lets unauthenti
Unauthenticated arbitrary Python module import in djust before 1.0.7 lets any client that can reach the WebSocket or SSE
Django 1.11 before 1.11.29, 2.2 before 2.2.11, and 3.0 before 3.0.4 allows SQL Injection if untrusted data is used as a
Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/j
Forged content modification in django-page-cms through 2.0.13 lets unauthenticated remote attackers exploit five CSRF-ex
Cross-site request forgery in djust's Server-Sent-Events transport affects all versions prior to 1.0.7 and allows a cros
Unauthenticated remote attackers can read live Django view and session state and invoke server-side handlers through dju
Vendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Fixed |
| openSUSE Leap 16.0 | Fixed |
| openSUSE Tumbleweed | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-52750
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB