CVE-2026-53878
Fixed in a distro release EPSS <1%CVSS 6.1
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.
Products: djangoproject django
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| PyPI | django | 5.2.16 |
| PyPI | django | 6.0.7 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | authentik-2025.12 | no fix |
| Chainguard | authentik-2026.2 | 2026.2.6-r14 |
| Chainguard | authentik-2026.5 | 2026.5.6-r6 |
| Chainguard | authentik-fips-2025.12 | no fix |
| Chainguard | authentik-fips-2026.2 | 2026.2.6-r14 |
| Chainguard | authentik-fips-2026.5 | 2026.5.6-r8 |
| Chainguard | awx | no fix |
| Chainguard | openstack-horizon-2025.1 | no fix |
| Chainguard | openstack-horizon-2025.1-fips | no fix |
| Chainguard | openstack-horizon-2025.2 | no fix |
| Chainguard | openstack-horizon-2025.2-fips | no fix |
| Chainguard | openstack-horizon-2026.1 | 25.7.3_git20260806-r1 |
| Chainguard | openstack-horizon-2026.1-fips | 25.7.3_git20260806-r1 |
| Debian 13 | python-django | no fix |
| Debian 14 | python-django | 3:5.2.16-1 |
| Ubuntu 22.04 LTS | python-django | no fix |
| Ubuntu 24.04 LTS | python-django | no fix |
| Ubuntu 25.10 | python-django | no fix |
| Ubuntu 26.04 LTS | python-django | no fix |
| Ubuntu 26.10 | python-django | no fix |
| Ubuntu Pro 14.04 LTS | python-django | no fix |
| Ubuntu Pro 16.04 LTS | python-django | no fix |
| Ubuntu Pro 18.04 LTS | python-django | no fix |
| Ubuntu Pro 20.04 LTS | python-django | no fix |
| openSUSE Leap 16.0 | python-Django | 5.2.4-bp160.10.1 |
| openSUSE Tumbleweed | python-Django | 5.2.16-1.1 |
| openSUSE Tumbleweed | python-Django5 | 5.2.16-1.1 |
| openSUSE Tumbleweed | python-Django6 | 6.0.7-1.1 |