# CVE-2026-53878: Header injection possibility since DomainNameValidator accepted newlines in input

- Severity: Medium 5.3 (CVSS:4.0, scored by DSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-07-07T14:10:29.935Z
- Modified: 2026-10-25T20:10:00.147Z
- Also known as: GHSA-8qcx-xf44-272x, BIT-DJANGO-2026-53878, PYSEC-2026-2092
- Weaknesses: CWE-144
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: DSF

## Description

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.

(As written by CVE List.)

## Affected

- django: from 6.0 before 6.0.7; from 5.2 before 5.2.16 (not affected: 6.0.7; 5.2.16)
- django (PyPI): before 5.2.16; from 6.0.0 before 6.0.7; from 5.2 before 5.2.16; from 6.0 before 6.0.7
- djangoproject django: from 5.2 before 5.2.16; from 6.0 before 6.0.7
- django (Bitnami): from 5.2.0 before 5.2.16; from 6.0.0 before 6.0.7

## Every score

- DSF: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- DSF: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- PyPA Advisory Database: 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`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://docs.djangoproject.com/en/dev/releases/security/> (advisory, fix, patch, vendor-advisory)
- <https://groups.google.com/g/django-announce> (advisory, article, mailing-list, release-notes, web)
- <https://www.djangoproject.com/weblog/2026/jul/07/security-releases/> (advisory, fix, patch, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-53878> (advisory, web)
- <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://docs.djangoproject.com/en/dev/releases/security> (web)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-2092.yaml> (web)
- <https://www.djangoproject.com/weblog/2026/jul/07/security-releases> (web)
- <https://github.com/advisories/GHSA-8qcx-xf44-272x> (advisory)

## Sources

- CVE List: [CVE-2026-53878](https://www.cve.org/CVERecord?id=CVE-2026-53878), CVE Terms of Use, modified 2026-07-07
- GitHub Advisory Database: [GHSA-8qcx-xf44-272x](https://github.com/advisories/GHSA-8qcx-xf44-272x), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-53878](https://nvd.nist.gov/vuln/detail/CVE-2026-53878), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2092](https://osv.dev/vulnerability/PYSEC-2026-2092), CC-BY-4.0, modified 2026-08-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2026-53878](https://osv.dev/vulnerability/BIT-DJANGO-2026-53878), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-53878 · Whole record: https://cve.day/CVE-2026-53878.json · Rebuilt by cve.day 2026-11-25T22:59:27.298Z
