CVE-2026-3902Djangoproject Django
High 7.5 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Apr 7, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-290
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
≥ 6.0 < 6.0.4 |
6.0.4 |
pip install "django>=6.0.4" |
| PyPI | django |
≥ 5.2 < 5.2.13 |
5.2.13 |
pip install "django>=5.2.13" |
| PyPI | django |
≥ 4.2 < 4.2.30 |
4.2.30 |
pip install "django>=4.2.30" |
| PyPI | django |
≥ 4.2 < 4.2.30 |
4.2.30 |
pip install "django>=4.2.30" |
| PyPI | django |
≥ 5.2 < 5.2.13 |
5.2.13 |
pip install "django>=5.2.13" |
| PyPI | django |
≥ 6.0 < 6.0.4 |
6.0.4 |
pip install "django>=6.0.4" |
Per OSV / GitHub Advisories (GHSA-mvfq-ggxm-9mc5, PYSEC-2026-51). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 4.2 < 4.2.30 |
| djangoproject | django | ≥ 5.2 < 5.2.13 |
| djangoproject | django | ≥ 6.0 < 6.0.4 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python311-Django-5.2.13-1.1 on GA media · SUSE · openSUSE-SU-2026:10567-1 · Apr 16, 2026 Critical
- Security update for python-Django · SUSE · openSUSE-SU-2026:20578-1 · Apr 13, 2026 Critical
Also: SUSE (+2)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- docs.djangoproject.com Patch Vendor Advisory
- groups.google.com Release Notes
- www.djangoproject.com Patch Vendor Advisory