CVE-2021-32052

Severity CVSS v4.0:
Pending analysis
Type:
CWE-79 Cross-Site Scripting (XSS)
Publication date:
06/05/2021
Last modified:
07/11/2023

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* 2.2 (including) 2.2.22 (excluding)
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* 3.1 (including) 3.1.10 (excluding)
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* 3.2 (including) 3.2.2 (excluding)
cpe:2.3:a:python:python:*:*:*:*:*:*:*:* 3.9.5 (including)
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*