{"id":"CVE-2026-53878","aliases":["CVE-2026-53878","GHSA-8qcx-xf44-272x","BIT-DJANGO-2026-53878","PYSEC-2026-2092"],"related":[],"kind":"vulnerability","state":"published","title":"Header injection possibility since DomainNameValidator accepted newlines in input","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Se descubrió un problema en Django 6.0 anterior a 6.0.7 y 5.2 anterior a 5.2.16.\n’DomainNameValidator’ no prohíbe los saltos de línea en los nombres de dominio (a menos que se use a través de un campo de formulario, ya que ’CharField’ elimina los saltos de línea). Si una aplicación utiliza valores con saltos de línea en una respuesta HTTP, puede ocurrir una inyección de encabezado. Django en sí no se ve afectado porque ’HttpResponse’ prohíbe los saltos de línea en los encabezados HTTP.\nSeries de Django anteriores y no compatibles (como 5.0.x, 4.1.x y 3.2.x) no fueron evaluadas y también pueden verse afectadas.\nDjango desea agradecer a Bence Nagy por informar sobre este problema.","source":"nvd"}],"published":"2026-07-07T14:10:29.935Z","modified":"2026-10-25T20:10:00.147Z","severity":{"scorer":"DSF","scheme":"CVSS:4.0","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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"DSF","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"DSF","scheme":"CVSS:4.0","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","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","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/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"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-144"],"affected":[{"ranges":[{"type":"python","introduced":"6.0","fixed":"6.0.7","status":"affected"},{"type":"python","version":"6.0.7","status":"unaffected"},{"type":"python","introduced":"5.2","fixed":"5.2.16","status":"affected"},{"type":"python","version":"5.2.16","status":"unaffected"}],"vendor":"djangoproject","product":"Django","package":"django","repo":"https://github.com/django/django/","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.2.16"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.0.7"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.2","fixed":"5.2.16"},{"status":"affected","introduced":"6.0","fixed":"6.0.7"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"5.2","status":"affected","fixed":"5.2.16"},{"type":"ecosystem","introduced":"6.0","status":"affected","fixed":"6.0.7"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"5.2.0","status":"affected","fixed":"5.2.16"},{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.0.7"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["advisory","fix","patch","vendor-advisory"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://groups.google.com/g/django-announce","tags":["advisory","article","mailing-list","release-notes","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2026/jul/07/security-releases/","tags":["advisory","fix","patch","vendor-advisory"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53878","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/django/django/commit/3a720d0d8bf2529253b98968f10ca73daf6d693c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/a5de13f1491f1dbf2bb0ad9b91570524ebbc8acd","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/d5d60ed0323cddaa0ce0237a26a3d49ac21ee05e","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-2092.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2026/jul/07/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-8qcx-xf44-272x","tags":["advisory"],"sources":["pysec"]}],"credits":["Bence Nagy","Natalia Bidart","Jacob Walls"],"assigner":"DSF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-07T14:58:12.426Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53878","url":"https://www.cve.org/CVERecord?id=CVE-2026-53878","licence":"CVE Terms of Use","modified":"2026-07-07T14:58:18.415Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8qcx-xf44-272x","url":"https://github.com/advisories/GHSA-8qcx-xf44-272x","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:11.070Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53878","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53878","licence":"Public domain","modified":"2026-10-25T20:10:00.147Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2092","url":"https://osv.dev/vulnerability/PYSEC-2026-2092","licence":"CC-BY-4.0","modified":"2026-08-10T11:00:08.218Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2026-53878","url":"https://osv.dev/vulnerability/BIT-DJANGO-2026-53878","licence":"Apache-2.0","modified":"2026-09-08T08:46:41.960Z"}],"updatedAt":"2026-11-25T22:59:27.298Z","epss":{"score":0.00206,"percentile":0.11261,"date":"2026-12-01T12:00:22.000Z"}}