CVE-2026-3902: CWE-290: Authentication Bypass by Spoofing in djangoproject Django
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.
AI Analysis
Technical Summary
This vulnerability involves the ASGIRequest component of Django, where two variants of HTTP headers—those containing hyphens and those with underscores—are ambiguously mapped to a single header name with underscores. This ambiguity can be exploited by a remote attacker to spoof headers, potentially bypassing authentication mechanisms. Affected versions include Django 6.0 prior to 6.0.4, 5.2 prior to 5.2.13, and 4.2 prior to 4.2.30. Unsupported earlier versions such as 5.0.x, 4.1.x, and 3.2.x were not evaluated but may also be vulnerable. The issue was reported by Tarek Nakkouch. There is no vendor advisory or patch link provided at this time.
Potential Impact
The vulnerability allows remote attackers to spoof HTTP headers due to ambiguous header mapping, which can lead to authentication bypass. This could enable unauthorized access depending on how the application relies on header values for authentication or authorization decisions. No known exploits are reported in the wild as of the publication date.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should monitor official Django project communications for updates and apply any forthcoming patches promptly. Until a fix is available, carefully review and validate header handling in applications using affected Django versions to mitigate spoofing risks.
CVE-2026-3902: CWE-290: Authentication Bypass by Spoofing in djangoproject Django
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves the ASGIRequest component of Django, where two variants of HTTP headers—those containing hyphens and those with underscores—are ambiguously mapped to a single header name with underscores. This ambiguity can be exploited by a remote attacker to spoof headers, potentially bypassing authentication mechanisms. Affected versions include Django 6.0 prior to 6.0.4, 5.2 prior to 5.2.13, and 4.2 prior to 4.2.30. Unsupported earlier versions such as 5.0.x, 4.1.x, and 3.2.x were not evaluated but may also be vulnerable. The issue was reported by Tarek Nakkouch. There is no vendor advisory or patch link provided at this time.
Potential Impact
The vulnerability allows remote attackers to spoof HTTP headers due to ambiguous header mapping, which can lead to authentication bypass. This could enable unauthorized access depending on how the application relies on header values for authentication or authorization decisions. No known exploits are reported in the wild as of the publication date.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should monitor official Django project communications for updates and apply any forthcoming patches promptly. Until a fix is available, carefully review and validate header handling in applications using affected Django versions to mitigate spoofing risks.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- DSF
- Date Reserved
- 2026-03-10T18:33:26.472Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d51c3eaaed68159a2c1625
Added to database: 4/7/2026, 3:01:18 PM
Last enriched: 4/7/2026, 3:17:51 PM
Last updated: 4/8/2026, 12:46:57 AM
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.