Quick answers
- Is CVE-2026-53878 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-53878 being exploited in the wild.
- How severe is CVE-2026-53878?
- Medium severity, with a CVSS score of 6.1, published 7 July 2026.
- Which products and versions are affected?
- Django (PyPI) ECOSYSTEM:introduced=0,fixed=5.2.16, ECOSYSTEM:introduced=5.2,fixed=5.2.16,introduced=6.0,fixed=6.0.7.
- Is there a fix for CVE-2026-53878?
- Yes. Django (PyPI): upgrade to 5.2.16, 6.0.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-53878 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-53878?
- Check whether you run Django (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- Django (PyPI): upgrade to 5.2.16, 6.0.7 or later
pip install "Django>=6.0.7"
Technical details
A vulnerability exists in Django's DomainNameValidator where it fails to prohibit newline characters in domain names. While Django's CharField typically strips newlines when used in forms, the validator itself does not, potentially allowing malicious input to pass through if used in other contexts. If an application subsequently includes these validated strings in an HTTP response header, it could lead to HTTP header injection (CWE-144). Although Django's HttpResponse class prohibits newlines in headers by default, applications using alternative response methods or manual header construction may be vulnerable. The issue is patched in versions 5.2.16 and 6.0.7.
Affected products
- Django Software Foundation Django 5.2 before 5.2.16, 6.0 before 6.0.7
Identifiers
- CVE-2026-53878
- GHSA-8qcx-xf44-272x
- PYSEC-2026-2092
Timeline
- 2026-07-07: disclosed
- 2026-07-07: patched
- 2026-07-07: advisory
References
- https://docs.djangoproject.com/en/dev/releases/security
- https://groups.google.com/g/django-announce
- https://www.djangoproject.com/weblog/2026/jul/07/security-releases
- https://github.com/django/django/commit/3a720d0d8bf2529253b98968f10ca73daf6d693c
- https://github.com/django/django/commit/a5de13f1491f1dbf2bb0ad9b91570524ebbc8acd