In-app reader
__ CVE-2026-53878 Detail
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 Version 4.0
**CVSS Version 3.x
**CVSS Version 2.0
_
NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
_
CVSS 4.0 Severity and Vector Strings:
NIST: NVD
** ** N/A
NVD assessment not yet provided. _
CNA: Django Software Foundation
**CVSS-B ** 5.3 MEDIUM
Vector: 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 _
CVSS 3.x Severity and Vector Strings:
NIST: NVD
Base Score: N/A
NVD assessment not yet provided. _
CNA: Django Software Foundation
Base Score: 6.1 MEDIUM
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N _
CVSS 2.0 Severity and Vector Strings:
NIST: NVD
Base Score: N/A
NVD assessment not yet provided. _
By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].
URL Source(s) Tag(s)
https://docs.djangoproject.com/en/dev/releases/security/
Django Software Foundation
Patch
Vendor Advisory
https://groups.google.com/g/django-announce
Django Software Foundation
Release Notes
https://www.djangoproject.com/weblog/2026/jul/07/security-releases/
Django Software Foundation
Patch
Vendor Advisory
CWE-ID CWE Name Source
Improper Neutralization of Line Delimiters
Django Software Foundation
Known Affected Software Configurations Switch to CPE 2.2
_
_ _
__ Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.
3 change records found show changes
** Initial Analysis by NIST 7/09/2026 8:58:17 AM **
Action Type Old Value New Value
Added CPE Configuration
OR
*cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* versions from (including) 5.2 up to (excluding) 5.2.16
*cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* versions from (including) 6.0 up to (excluding) 6.0.7
Added Reference Type
Django Software Foundation: https://docs.djangoproject.com/en/dev/releases/security/ Types: Patch, Vendor Advisory
Added Reference Type
Django Software Foundation: https://groups.google.com/g/django-announce Types: Release Notes
Added Reference Type
Django Software Foundation: https://www.djangoproject.com/weblog/2026/jul/07/security-releases/ Types: Patch, Vendor Advisory
** CVE Modified by CISA-ADP 7/07/2026 12:16:40 PM **
Action Type Old Value New Value
Added SSVC
{"timestamp":"2026-07-07T14:58:12.426667Z","id":"CVE-2026-53878","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}
** New CVE Received from Django Software Foundation 7/07/2026 11:16:48 AM **
Action Type Old Value New Value
Added 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.
Added CVSS V4.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
Added CVSS V3.1
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Added CWE
CWE-144
Added Reference
https://docs.djangoproject.com/en/dev/releases/security/
Added Reference
https://groups.google.com/g/django-announce
Added Reference
https://www.djangoproject.com/weblog/2026/jul/07/security-releases/
Added Affected
[{"vendor":"djangoproject","product":"Django","defaultStatus":"unaffected","collectionURL":"https://pypi.org/project/Django/","packageName":"django","repo":"https://github.com/django/django/","versions":[{"version":"6.0","lessThan":"6.0.7","versionType":"python","status":"affected"},{"version":"6.0.7","versionType":"python","status":"unaffected"},{"version":"5.2","lessThan":"5.2.16","versionType":"python","status":"affected"},{"version":"5.2.16","versionType":"python","status":"unaffected"}]}]
Quick Info
CVE Dictionary Entry: CVE-2026-53878 NVD Published Date: 07/07/2026 NVD Last Modified: 07/09/2026 ** Source:** Django Software Foundation
_
Discussion
Sign in to join the discussion.
Keep reading
Optional: create a free account to save items, track programs, and sync across web + app. Reading stays free.