Skip to main content

Django CVE-2026-3902

| EUVDEUVD-2026-19686 HIGH
Authentication Bypass by Spoofing (CWE-290)
2026-04-07 DSF GHSA-mvfq-ggxm-9mc5
7.5
CVSS 3.1 · Vendor: DSF
View

Attack ChainAIDerived

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

  1. Access
    Craft HTTP request with ambiguous headers
  2. Exploit
    ASGIRequest maps hyphenated/underscored variants to single version
  3. Execution
    Attacker spoofs security headers
  4. Impact
    Bypass 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

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

Django 6.0 <6.0.4
Django 4.2 <4.2.30
Django 5.2 <5.2.13

Affected Packages

pypi django fix: 4.2.30, 5.2.1+echo.1, 5.2.13, 6.0.4

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

Vendor (DSF) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
SUSE HIGH
Red Hat 5.3 MEDIUM

Primary rating from Vendor (DSF).

CVSS VectorVendor: DSF

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch released
Apr 07, 2026 - 21:31 nvd
Patch available
CVE Published
Apr 07, 2026 - 14:22 nvd
HIGH 7.5

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 18 pypi packages depend on django (18 direct, 0 indirect)

Ecosystem-wide dependent count for version 6.0.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 89% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL 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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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: 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

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