CVE-2021-32052

Medium

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.

SeverityMedium
CVSS6.1
Exploit probability—
ProductDjango
PublishedMay 6, 2021
First seenMay 6, 2021

How to fix

Update
  • djangoproject django2.2.22, 3.1.10, 3.2.2 or later
  • django2.2.22, 3.1.10, 3.2.2 or later

Affected products

ProductAffected versionsFixed in
djangoproject django2.2 ≤ v < 2.2.22, 3.1 ≤ v < 3.1.10, 3.2 ≤ v < 3.2.22.2.22, 3.1.10, 3.2.2
fedoraproject fedora34—
djangoPyPI2.2 ≤ v < 2.2.22, 3.1 ≤ v < 3.1.10, 3.2 ≤ v < 3.2.22.2.22, 3.1.10, 3.2.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2021-32052 · Django · Dark Radar