CVE-2026-3902
HIGH 7.5CVSS 3.1Django vulnerable to ASGI header spoofing via underscore/hyphen conflation
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.
- Published
- 7 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
- NVD status
- Analyzed
- Weakness
- CWE-290
- Also known as
- BIT-django-2026-3902GHSA-mvfq-ggxm-9mc5PYSEC-2026-51
- Sources
- NVDJSONOSV GHSA-mvfq-ggxm-9mc5JSONOSV PYSEC-2026-51JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 4.2, < 4.2.30 | 4.2.30 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 5.2, < 5.2.13 | 5.2.13 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 6.0, < 6.0.4 | 6.0.4 |
| OSV | PyPI | django | >= 6.0, < 6.0.4 | 6.0.4 |
| OSV | PyPI | django | >= 5.2, < 5.2.13 | 5.2.13 |
| OSV | PyPI | django | >= 4.2, < 4.2.30 | 4.2.30 |
| OSV | PyPI | django | >= 4.2, < 4.2.30; >= 5.2, < 5.2.13; >= 6.0, < 6.0.4 | 4.2.30, 5.2.13, 6.0.4 |
References
- https://docs.djangoproject.com/en/dev/releases/security/ · Patch, Vendor Advisory, WEB, FIX
- https://groups.google.com/g/django-announce · Release Notes, WEB, ADVISORY
- https://www.djangoproject.com/weblog/2026/apr/07/security-releases/ · Patch, Vendor Advisory, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2026-3902 · ADVISORY
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-51.yaml · WEB
- https://github.com/advisories/GHSA-mvfq-ggxm-9mc5 · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 7 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Apr 2026)