Medium severity6.1NVD Advisory· Published Jul 7, 2026· Updated Jul 9, 2026
CVE-2026-53878
CVE-2026-53878
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
djangoPyPI | < 5.2.16 | 5.2.16 |
djangoPyPI | >= 6.0.0, < 6.0.7 | 6.0.7 |
Affected products
14=3.2.x+ 1 more
- (no CPE)range: =3.2.x
- cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*range: >=5.2,<5.2.16
- Range: <6.0.7, <5.2.16
- osv-coords11 versionspkg:apk/chainguard/authentik-2026.2pkg:apk/chainguard/authentik-2026.5pkg:apk/chainguard/authentik-fips-2026.2pkg:apk/chainguard/authentik-fips-2026.5pkg:apk/chainguard/openstack-horizon-2026.1pkg:apk/chainguard/openstack-horizon-2026.1-fipspkg:bitnami/djangopkg:rpm/opensuse/python-Django&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-Django&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-Django5&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-Django6&distro=openSUSE%20Tumbleweed
< 2026.2.6-r14+ 10 more
- (no CPE)range: < 2026.2.6-r14
- (no CPE)range: < 2026.5.6-r6
- (no CPE)range: < 2026.2.6-r14
- (no CPE)range: < 2026.5.6-r8
- (no CPE)range: < 25.7.3_git20260806-r1
- (no CPE)range: < 25.7.3_git20260806-r1
- (no CPE)range: >= 5.2.0, < 5.2.16
- (no CPE)range: < 5.2.4-bp160.10.1
- (no CPE)range: < 5.2.16-1.1
- (no CPE)range: < 5.2.16-1.1
- (no CPE)range: < 6.0.7-1.1
Patches
Vulnerability mechanics
References
11- docs.djangoproject.com/en/dev/releases/security/nvdPatchVendor Advisory
- github.com/advisories/GHSA-8qcx-xf44-272xghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-53878ghsaADVISORY
- www.djangoproject.com/weblog/2026/jul/07/security-releases/nvdVendor AdvisoryPatch
- docs.djangoproject.com/en/dev/releases/securityghsaWEB
- github.com/django/django/commit/3a720d0d8bf2529253b98968f10ca73daf6d693cghsaWEB
- github.com/django/django/commit/a5de13f1491f1dbf2bb0ad9b91570524ebbc8acdghsaWEB
- github.com/django/django/commit/d5d60ed0323cddaa0ce0237a26a3d49ac21ee05eghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-2092.yamlghsaWEB
- groups.google.com/g/django-announcenvdRelease NotesWEB
- www.djangoproject.com/weblog/2026/jul/07/security-releasesghsaWEB
News mentions
0No linked articles in our index yet.