Newline Injection Vulnerability in Django Product by Django
CVE-2026-53878

5.3MEDIUM

Key Information:

Status
Vendor
CVE Published:
7 July 2026

What is CVE-2026-53878?

A vulnerability exists in Django's DomainNameValidator component that allows newlines in domain names. This can lead to potential header injection in HTTP responses if unfiltered values containing newlines are utilized. While the Django framework itself mitigates this risk via HttpResponse, which forbids newlines in HTTP headers, applications reliant on earlier Django versions (5.0.x, 4.1.x, and 3.2.x) might remain susceptible. Affected versions include Django 6.0 prior to 6.0.7 and 5.2 before 5.2.16. The discovery and reporting of this issue were credited to security researcher Bence Nagy.

Affected Version(s)

Django 6.0 < 6.0.7

Django 5.2 < 5.2.16

Django 6.0.7

References

CVSS V4

Score:
5.3
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Bence Nagy
Natalia Bidart
Jacob Walls
.