PT-2021-19642

CVE-2021-32052

·

Published

2021-05-06

·

Updated

2026-07-14

Description by

CVSS 3.1
6.1
Medium
MetricsAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions: Django versions 2.2 before 2.2.22 Django versions 3.1 before 3.1.10 Django versions 3.2 before 3.2.2
Description: The issue arises from the URLValidator in Django not prohibiting newlines and tabs, unless the URLField form field is used. This can lead to header injection if an application uses values with newlines in an HTTP response. However, Django itself is not affected because HttpResponse prohibits newlines in HTTP headers.
Recommendations: For Django versions 2.2 before 2.2.22, update to version 2.2.22 or later to resolve the issue. For Django versions 3.1 before 3.1.10, update to version 3.1.10 or later to resolve the issue. For Django versions 3.2 before 3.2.2, update to version 3.2.2 or later to resolve the issue. As a temporary workaround, consider restricting the use of values with newlines in HTTP responses to minimize the risk of header injection.
Exploitability
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-QM57-VHQ3-3FWF
ALT-PU-2021-2228
ALT-PU-2021-3619
BIT-DJANGO-2021-32052
MGASA-2021-0356
OPENSUSE-SU-2023:0005-1
OPENSUSE-SU-2024:11205-1
OPENSUSE-SU-2024:13887-1
OPENSUSE-SU-2024:14208-1
OPENSUSE-SU-2026:10005-1
OPENSUSE-SU-2026:11235-1
OPENSUSE-SU-2026:11248-1
OPENSUSE-SU-2026:11270-1
PYSEC-2021-8
USN-4975-1
USN-5373-1
USN-5373-2
Found an issue in the description? Have something to add? Feel free to write us 👾