Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft HTTP request with ambiguous headers
-
ExploitASGIRequest maps hyphenated/underscored variants to single version
-
ExecutionAttacker spoofs security headers
-
ImpactBypass authentication or authorization checks
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Anti-spoofing controls
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Remote unauthenticated attacker can exploit Django 6.0 before 6.0.4, 5.2 before 5.2.13, 4.2 before 4.2.30 via HTTP requests with crafted headers using hyphen/underscore variants to spoof headers processed by ASGIRequest. No user interaction required. |
| Impact | Real-world risk is HIGH despite no confirmed active exploitation. The CVSS 7.5 score accurately reflects the threat model: network-accessible attack vector (AV:N), low complexity (AC:L), no authentication required (PR:N), and high integrity impact (I:H) with no confidentiality or availability impact. The vulnerability is remotely exploitable without authentication and requires no user interaction, making it trivially automatable once attackers identify ASGI-deployed Django applications. The authentication bypass classification elevates urgency because header spoofing can defeat proxy-based access controls, IP filtering, and session management logic that trusts forwarded headers. While no public exploit code exists and CISA KEV status is not indicated, the combination of unauthenticated remote exploitation, low attack complexity, and authentication bypass capability makes this a priority patch candidate. Organizations using Django behind reverse proxies (common production deployment pattern) or implementing security controls based on HTTP headers face immediate risk. The SSVC framework would classify this as automatable with moderate technical impact, warranting quick remediation timelines especially for internet-facing applications. |
| Exploit ScenarioDerived | An attacker identifies a Django application deployed behind a reverse proxy using ASGI (such as Uvicorn or Daphne) that implements IP-based access controls by trusting the X-Forwarded-For header. The attacker crafts an HTTP request containing both X-Forwarded-For with a spoofed trusted IP address and X_Forwarded_For with their actual IP, exploiting the ambiguous header mapping. Django's ASGIRequest processes these conflicting headers inconsistently, allowing the spoofed trusted IP to bypass authentication checks, granting unauthorized access to administrative interfaces or sensitive API endpoints. Similar attacks could manipulate X-Forwarded-Proto to downgrade HTTPS requirements or X-Forwarded-Host to trigger server-side request forgery chains, all without requiring authentication or complex exploitation techniques. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 07, 2026
Header spoofing in Django 4.2 through 6.0 allows remote attackers to bypass security controls by exploiting ambiguous ASGI header normalization. The ASGIRequest handler incorrectly maps both hyphenated and underscored header variants to the same underscored version, enabling attackers to send conflicting headers where the malicious version overwrites legitimate security headers. Affects Django 6.0 before 6.0.4, 5.2 before 5.2.13, and 4.2 before 4.2.30. No public exploit identified at time of analysis. EPSS data not available, but the unauthenticated network attack vector and high integrity impact warrant immediate patching.
RemediationAI
Immediately upgrade to patched Django versions: 6.0.4 for the 6.0 series, 5.2.13 for the 5.2 series, or 4.2.30 for the 4.2 long-term support branch. These versions contain fixes for the ASGIRequest header normalization vulnerability. Users of unsupported Django versions (5.0.x, 4.1.x, 3.2.x and earlier) should prioritize migration to a supported LTS release (currently 4.2.30 or newer) as no security patches will be issued for end-of-life branches. In environments where immediate patching is not feasible, implement defense-in-depth controls including strict validation of forwarded headers at the reverse proxy layer, use of allowlists for acceptable header values, and avoid trusting client-controllable headers for authentication or authorization decisions. Review application code for dependencies on X-Forwarded-* headers and similar proxy-forwarded values. Complete remediation guidance and release notes are available at https://docs.djangoproject.com/en/dev/releases/security/ and https://www.djangoproject.com/weblog/2026/apr/07/security-releases/.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability resides in Django's ASGI (Asynchronous Server Gateway Interface) request handling implementation. ASGI is Django's interface specification for asynchronous web servers and applications, the successor to WSGI. The flaw stems from improper HTTP header normalization where ASGIRequest converts both hyphenated header names (HTTP standard format like X-Forwarded-For) and underscored variants (X_Forwarded_For) to the same underscored Python dictionary key. This ambiguous mapping creates CWE-290 (Authentication Bypass by Spoofing) conditions because attackers can send duplicate headers with different naming conventions, causing the framework to process them inconsistently. Security-critical headers like X-Forwarded-Host, X-Forwarded-Proto, or authentication tokens become vulnerable to replacement attacks where malicious underscored versions override legitimate hyphenated versions or vice versa, depending on processing order. This affects all ASGI deployment configurations of Django, particularly those behind reverse proxies that rely on forwarded headers for authentication decisions, IP allowlisting, or protocol enforcement.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Primary rating from Vendor (DSF).
CVSS VectorVendor: DSF
Lifecycle Timeline
2DescriptionCVE.org
An issue was discovered in 6.0 before 6.0.4, 5.2 before 5.2.13, and 4.2 before 4.2.30. ASGIRequest allows a remote attacker to spoof headers by exploiting an ambiguous mapping of two header variants (with hyphens or with underscores) to a single version with underscores. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Tarek Nakkouch for reporting this issue.
Blast Radius
ecosystem impact- 18 pypi packages depend on django (18 direct, 0 indirect)
Ecosystem-wide dependent count for version 6.0.
Executive ViewAI
Django versions 4.2 through 6.0 contain a header spoofing vulnerability that allows unauthenticated remote attackers to bypass security controls by manipulating HTTP headers, potentially compromising authentication, CSRF protection, and other header-based defenses. Organizations running affected Django versions face immediate risk to application security posture and should prioritize patching to restore header validation integrity.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy WAF rules to detect and block requests with ambiguous headers (both hyphenated and underscored variants of the same header); (2) Implement reverse proxy header validation to normalize and enforce single header format before reaching Django; (3) Restrict network access to Django application to trusted upstream systems only; (4) Monitor HTTP request logs for suspicious header patterns and security header conflicts. These controls reduce but do not eliminate risk-patching is mandatory.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Related Vulnerabilities in Django Security Multiple Issues
View all 5The 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
Same weakness CWE-290 – Authentication Bypass by Spoofing
View allSame technique Authentication Bypass
View allVendor StatusVendor
SUSE
Severity: High| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Fixed |
| openSUSE Leap 15.6 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Fixed |
EUVD-2026-19686
GHSA-mvfq-ggxm-9mc5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB