CVEvulnerability

CVE-2021-32052

6.1 MEDIUM Published 2021-05-06 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2021-05-06
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
6.1 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS 2.0 ([email protected])
4.3 MEDIUM — AV:N/AC:M/Au:N/C:N/I:P/A:N
Weaknesses
CWE-79

Description

In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs (unless the URLField form field is used). 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.

Affected configurations

• djangoproject django (>= 2.2 < 2.2.22) • djangoproject django (>= 3.1 < 3.1.10) • djangoproject django (>= 3.2 < 3.2.2) • fedoraproject fedora 34

Related

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References