Header injection possibility since DomainNameValidator accepted newlines in input
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Partial Red Hat: 4 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| djangoproject | Django | 6.0 to before 6.0.7; 5.2 to before 5.2.16 | 6.0.7, 5.2.16 | Patch available | CNA |
| — | django (PyPI) | before 5.2.16 | 5.2.16 | Patch available | GHSA-8qcx-xf44-272x |
| — | django (PyPI) | 6.0.0 to before 6.0.7 | 6.0.7 | Patch available | GHSA-8qcx-xf44-272x |
- Django Vendordjangoproject Affected 6.0 to before 6.0.7; 5.2 to before 5.2.16 Fixed in 6.0.7, 5.2.16 Patch available CNA
- django (PyPI) Vendor— Affected before 5.2.16 Fixed in 5.2.16 Patch available GHSA-8qcx-xf44-272x
- django (PyPI) Vendor— Affected 6.0.0 to before 6.0.7 Fixed in 6.0.7 Patch available GHSA-8qcx-xf44-272x
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 5.2 to before 5.2.16; 6.0 to before 6.0.7 | Vulnerable | djangoproject |
- cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* Versions 5.2 to before 5.2.16; 6.0 to before 6.0.7 Vulnerable ·djangoproject
Remediation
- Fix · CNA Django (djangoproject) Fixed in 6.0.7, 5.2.16
- Fix · GHSA-8qcx-xf44-272x django (PyPI) Fixed in 5.2.16 Advisory →
- Fix · GHSA-8qcx-xf44-272x django (PyPI) Fixed in 6.0.7 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
djangoproject Django — Django security releases issued: 6.0.7 and 5.2.16
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2026-38873 Heap buffer over-read in GDALRasterPriority LOW 29
- TI-2026-35944 Potential exposure of private data via cached Set-Cookie responsePriority LOW 12
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Discovery 2 | Affected | No fix yet: Fix deferred |
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
| Self-service automation portal 2 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-53878
- 2026-10-03 Alias added: GHSA-8qcx-xf44-272x
References
Other 8
- Django releases announcements
- https://github.com/django/django/commit/3a720d0d8bf2529253b98968f10ca73daf6d693c
- https://github.com/django/django/commit/a5de13f1491f1dbf2bb0ad9b91570524ebbc8acd
- https://github.com/django/django/commit/d5d60ed0323cddaa0ce0237a26a3d49ac21ee05e
- https://docs.djangoproject.com/en/dev/releases/security
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-2092.yaml
- https://www.djangoproject.com/weblog/2026/jul/07/security-releases
More djangoproject Django vulnerabilities
- TI-2022-15177 An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. CVSS 3.1CRITICAL 9.8
- TI-2020-05994 Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection… CVSS 3.1CRITICAL 9.8
- TI-2023-10198 An issue was discovered in the Multipart Request Parser in Django 3.2 before 3.2.18, 4.0… CVSS 3.1HIGH 7.5
- TI-2019-14306 Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover. CVSS 3.1CRITICAL 9.8
- TI-2019-10595 An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x… CVSS 3.0CRITICAL 9.8
- TI-2021-14006 Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-53878 · CVE Program
- CVE-2026-53878 · NVD
- FIRST EPSS
- GHSA-8qcx-xf44-272x · GitHub Advisory Database · CC BY 4.0
- CVE-2026-53878 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences