CVE-2026-53878
MEDIUM 5.3CVSS 4.0Django: DomainNameValidator permits newline characters that may enable HTTP header injection
An issue was discovered in Django 6.0 before 6.0.7 and 5.2 before 5.2.16.
DomainNameValidator does not prohibit newlines in domain names (unless used via a form field, since CharField strips newlines). If an application uses values with newlines in an HTTP response, header injection can occur. Django itself is unaffected because HttpResponse prohibits newlines in HTTP headers.
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 Bence Nagy for reporting this issue.
- Published
- 7 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
- NVD status
- Analyzed
- Weakness
- CWE-144
- Also known as
- BIT-django-2026-53878GHSA-8qcx-xf44-272xPYSEC-2026-2092
- Sources
- NVDJSONOSV GHSA-8qcx-xf44-272xJSONOSV PYSEC-2026-2092JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (Secondary) | CVSS 4.0 | MEDIUM 5.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | |
| NVD | 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 5.2, < 5.2.16 | 5.2.16 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 6.0, < 6.0.7 | 6.0.7 |
| OSV | PyPI | django | < 5.2.16 | 5.2.16 |
| OSV | PyPI | django | >= 6.0.0, < 6.0.7 | 6.0.7 |
| OSV | PyPI | django | >= 5.2, < 5.2.16; >= 6.0, < 6.0.7 | 5.2.16, 6.0.7 |
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/jul/07/security-releases/ · Vendor Advisory, Patch, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2026-53878 · ADVISORY
- https://github.com/django/django/commit/3a720d0d8bf2529253b98968f10ca73daf6d693c · WEB
- https://github.com/django/django/commit/a5de13f1491f1dbf2bb0ad9b91570524ebbc8acd · WEB
- https://github.com/django/django/commit/d5d60ed0323cddaa0ce0237a26a3d49ac21ee05e · WEB
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-2092.yaml · WEB
- https://github.com/advisories/GHSA-8qcx-xf44-272x · ADVISORY
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Jul 2026)