CVE catalog

CVE-2026-53878

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 newli

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.33% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-djangosid3:5.2.18-1fixed
Debianpython-djangoforky3:5.2.17-2fixed
Debianpython-djangotrixie3:4.2.28-0+deb13u2vulnerable
Debianpython-djangotrixie-security3:4.2.28-0+deb13u1vulnerable
Debianpython-djangobookworm3:3.2.25-0+deb12u3not affected
Debianpython-djangobookworm-security3:3.2.25-0+deb12u6not affected
Cpepython-djangoNot reportedNot reportedvulnerable
CpedjangoNot reported5.2.16fixed
CpedjangoNot reported6.0.7fixed
PyPIdjangoNot reported6.0.7fixed
PyPIdjangoNot reported6.0.7fixed
CpedjangoNot reported6.0.7fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-djangosourcesid3:5.2.16-1not yet assignedNot reported[1141629]
Debianpython-djangosourceforky3:5.2.16-1not yet assignedNot reported[1141629]
Debianpython-djangosourcetrixie(unfixed)not yet assignedNot reported[1141629]
Debianpython-djangosourcebookwormNot affectedunimportantNot reported[1141629]
CpedjangocpeNot reported5.2.16Not reportedNot reportedNot reported
CpedjangocpeNot reported6.0.7Not reportedNot reportedNot reported
PyPIdjangoPyPINot reported6.0.7Not reportedGHSA-8QCX-XF44-272XNot reported
PyPIdjangoPyPINot reported6.0.7Not reportedNot reportedNot reported
CpedjangocpeNot reported6.0.7Not reportedNVD-CVE-2026-53878Not reported

[Debian bug #1141629]

Notes

[trixie] python-django: Minor issue

OpenFactory catalog packages

[Debian 13 (Trixie)]

  • [python3-django]Affected

    Source package: [python-django]

    Details (6)
    • 3:4.2.28-0+deb13u2 · all · trixie

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u2 · all · trixie

      Affected

      nvd · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Affected

      nvd · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Affected

      nvd · python-django · debian · 13

  • Source package: [python-django]

    Details (6)
    • 3:4.2.28-0+deb13u2 · all · trixie

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u2 · all · trixie

      Affected

      nvd · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Affected

      nvd · python-django · debian · 13

    • 3:5.2.16-1~bpo13+1 · all · trixie-backports

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Affected

      nvd · python-django · debian · 13

    • 3:4.2.28-0+deb13u1 · all · trixie-security

      Affected

      nvd · python-django · debian · 13

[Debian 12 (Bookworm)]

  • [python3-django]Not affected

    Source package: [python-django]

    Details (6)
    • 3:3.2.25-0+deb12u3 · all · bookworm

      Not affected

      nvd · python-django · debian · bookworm

    • 3:3.2.25-0+deb12u3 · all · bookworm

      Not affected

      nvd · python-django · debian · bookworm

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · python-django · debian · bookworm

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · python-django · debian · bookworm

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Not affected

      nvd · python-django · debian · bookworm

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Not affected

      nvd · python-django · debian · bookworm

  • [python-django-doc]Not affected

    Source package: [python-django]

    Details (6)
    • 3:3.2.25-0+deb12u3 · all · bookworm

      Not affected

      nvd · python-django · debian · bookworm

    • 3:3.2.25-0+deb12u3 · all · bookworm

      Not affected

      nvd · python-django · debian · bookworm

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · python-django · debian · bookworm

    • 3:4.2.21-1~bpo12+1 · all · bookworm-backports

      Not affected

      nvd · python-django · debian · bookworm

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Not affected

      nvd · python-django · debian · bookworm

    • 3:3.2.25-0+deb12u4 · all · bookworm-security

      Not affected

      nvd · python-django · debian · bookworm

Observed:

References