
CVE catalog
CVE-2026-53878
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 newli
- Severity
- Medium · CVSS 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.33% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-django | sid | 3:5.2.18-1 | fixed |
| Debian | python-django | forky | 3:5.2.17-2 | fixed |
| Debian | python-django | trixie | 3:4.2.28-0+deb13u2 | vulnerable |
| Debian | python-django | trixie-security | 3:4.2.28-0+deb13u1 | vulnerable |
| Debian | python-django | bookworm | 3:3.2.25-0+deb12u3 | not affected |
| Debian | python-django | bookworm-security | 3:3.2.25-0+deb12u6 | not affected |
| Cpe | python-django | Not reported | Not reported | vulnerable |
| Cpe | django | Not reported | 5.2.16 | fixed |
| Cpe | django | Not reported | 6.0.7 | fixed |
| PyPI | django | Not reported | 6.0.7 | fixed |
| PyPI | django | Not reported | 6.0.7 | fixed |
| Cpe | django | Not reported | 6.0.7 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-django | source | sid | 3:5.2.16-1 | not yet assigned | Not reported | [1141629] |
| Debian | python-django | source | forky | 3:5.2.16-1 | not yet assigned | Not reported | [1141629] |
| Debian | python-django | source | trixie | (unfixed) | not yet assigned | Not reported | [1141629] |
| Debian | python-django | source | bookworm | Not affected | unimportant | Not reported | [1141629] |
| Cpe | django | cpe | Not reported | 5.2.16 | Not reported | Not reported | Not reported |
| Cpe | django | cpe | Not reported | 6.0.7 | Not reported | Not reported | Not reported |
| PyPI | django | PyPI | Not reported | 6.0.7 | Not reported | GHSA-8QCX-XF44-272X | Not reported |
| PyPI | django | PyPI | Not reported | 6.0.7 | Not reported | Not reported | Not reported |
| Cpe | django | cpe | Not reported | 6.0.7 | Not reported | NVD-CVE-2026-53878 | Not reported |
Notes
[trixie] python-django: Minor issue
OpenFactory catalog packages
[Debian 13 (Trixie)]
- [python3-django]Affected
Source package: [python-django]
Details (6)
3:4.2.28-0+deb13u2· all · trixieAffected
nvd · python-django · debian · 13
3:4.2.28-0+deb13u2· all · trixieAffected
nvd · python-django · debian · 13
3:5.2.16-1~bpo13+1· all · trixie-backportsAffected
nvd · python-django · debian · 13
3:5.2.16-1~bpo13+1· all · trixie-backportsAffected
nvd · python-django · debian · 13
3:4.2.28-0+deb13u1· all · trixie-securityAffected
nvd · python-django · debian · 13
3:4.2.28-0+deb13u1· all · trixie-securityAffected
nvd · python-django · debian · 13
- [python-django-doc]Affected
Source package: [python-django]
Details (6)
3:4.2.28-0+deb13u2· all · trixieAffected
nvd · python-django · debian · 13
3:4.2.28-0+deb13u2· all · trixieAffected
nvd · python-django · debian · 13
3:5.2.16-1~bpo13+1· all · trixie-backportsAffected
nvd · python-django · debian · 13
3:5.2.16-1~bpo13+1· all · trixie-backportsAffected
nvd · python-django · debian · 13
3:4.2.28-0+deb13u1· all · trixie-securityAffected
nvd · python-django · debian · 13
3:4.2.28-0+deb13u1· all · trixie-securityAffected
nvd · python-django · debian · 13
[Debian 12 (Bookworm)]
- [python3-django]Not affected
Source package: [python-django]
Details (6)
3:3.2.25-0+deb12u3· all · bookwormNot affected
nvd · python-django · debian · bookworm
3:3.2.25-0+deb12u3· all · bookwormNot affected
nvd · python-django · debian · bookworm
3:4.2.21-1~bpo12+1· all · bookworm-backportsNot affected
nvd · python-django · debian · bookworm
3:4.2.21-1~bpo12+1· all · bookworm-backportsNot affected
nvd · python-django · debian · bookworm
3:3.2.25-0+deb12u4· all · bookworm-securityNot affected
nvd · python-django · debian · bookworm
3:3.2.25-0+deb12u4· all · bookworm-securityNot affected
nvd · python-django · debian · bookworm
- [python-django-doc]Not affected
Source package: [python-django]
Details (6)
3:3.2.25-0+deb12u3· all · bookwormNot affected
nvd · python-django · debian · bookworm
3:3.2.25-0+deb12u3· all · bookwormNot affected
nvd · python-django · debian · bookworm
3:4.2.21-1~bpo12+1· all · bookworm-backportsNot affected
nvd · python-django · debian · bookworm
3:4.2.21-1~bpo12+1· all · bookworm-backportsNot affected
nvd · python-django · debian · bookworm
3:3.2.25-0+deb12u4· all · bookworm-securityNot affected
nvd · python-django · debian · bookworm
3:3.2.25-0+deb12u4· all · bookworm-securityNot affected
nvd · python-django · debian · bookworm
Observed:
References
- [https://docs.djangoproject.com/en/dev/releases/security/]
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11236-1.json]
- [https://groups.google.com/g/django-announce]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-53878]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-53878]
- [https://osv.dev/vulnerability/GHSA-8qcx-xf44-272x]
- [https://security-tracker.debian.org/tracker/CVE-2026-53878]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-53878.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2231.json]
- [https://www.djangoproject.com/weblog/2026/jul/07/security-releases/]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]