CVE-2026-53878An issue was discovered in Django 6.0 before 6.0.7 and 5.2 before 5.2.16.
Updated under an hour ago ()
Does this affect you?
It affects djangoproject django. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 6.1 MEDIUM (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weakness (CWE)
- CWE-144
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- Not given
- NVD analysis
- Analyzed
- Record last updated
- Jul 9, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
djangoproject django djangoproject:django | from 5.2 before 5.2.16; from 6.0 before 6.0.7 | NVD |
References
- https://docs.djangoproject.com/en/dev/releases/security/patch, vendor-advisory
- https://groups.google.com/g/django-announcerelease-notes
- https://www.djangoproject.com/weblog/2026/jul/07/security-releases/vendor-advisory, patch
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.