PT-2021-19642
CVE-2021-32052
·
تاريخ النشر
2021-05-06
·
تاريخ التحديث
2026-07-14
الوصف من
CVSS 3.1
6.1
متوسطةالمقاييسAV: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.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾