{"id":"CVE-2026-53878","published":"2026-07-07T14:10:29Z","modified":"2026-07-07T14:58:18Z","title":"Header injection possibility since DomainNameValidator accepted newlines in input","vendor":"djangoproject","product":"Django","tier":"tail","description":{"text":"An issue was discovered in Django 6.0 before 6.0.7 and 5.2 before 5.2.16.\n`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.\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.\nDjango would like to thank Bence Nagy for reporting this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00327,"percentile":0.26444,"provenance":"source"},"cwes":[{"id":"CWE-144","name":"Improper Neutralization of Line Delimiters"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["vendor-advisory"]},{"url":"https://groups.google.com/g/django-announce","tags":["mailing-list"]},{"url":"https://www.djangoproject.com/weblog/2026/jul/07/security-releases/","tags":["vendor-advisory"]}],"priority":{"score":9.6,"factors":[{"name":"EPSS percentile","points":5.29},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"djangoproject","affectedVersions":[{"vendor":"djangoproject","product":"Django","versions":[">= 6.0, < 6.0.7",">= 5.2, < 5.2.16"]}],"fixedVersions":[{"vendor":"djangoproject","product":"Django","versions":["6.0.7","5.2.16"]}],"capec":[{"id":"CAPEC-34","name":"HTTP Response Splitting"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-07T14:58:12.426667Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"django","vulnerableRanges":["<5.2.16",">=6.0.0, <6.0.7",">=5.2, <5.2.16",">=6.0, <6.0.7"],"patched":["5.2.16","6.0.7"],"from":["GHSA-8qcx-xf44-272x","PYSEC-2026-2092"],"provenance":"source"}],"summary":{"text":"The flaw is in Django's DomainNameValidator, which fails to reject newline characters in domain names, so the validator accepts input that can carry line breaks into applications built on it. An attacker can cause HTTP header injection when an application places such a newline-containing value into an HTTP response, which requires the application to use that value unsanitised in headers, reachable over the network with user interaction and no authentication; the flaw does not affect Django's own HttpResponse, which prohibits newlines in headers.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:51Z"},"euvd":{"id":"EUVD-2026-42045","exploited":false,"provenance":"source"}}