CVE-2021-32052
Header injection possible in Django
6.1
MEDIUM
CVSS 3.1
EPSS 1.9%
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.
How to fix CVE-2021-32052
To remediate CVE-2021-32052, upgrade the affected package to a fixed version below.
- —upgrade to 2.2.22 or later
- —upgrade to 2:2.2.22-1 or later
- —upgrade to 2.2.22 or later
- —upgrade to 2.2.22 or later
Is CVE-2021-32052 being exploited?
Low — EPSS is 1.9%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- >= 2.2.0, < 2.2.22, >= 3.1.0, < 3.1.10, >= 3.2.0, < 3.2.2
- from 0, < 2:2.2.22-1
- >= 2.2, < 2.2.22
- >= 2.2, < 2.2.22, >= 3.1, < 3.1.10, >= 3.2, < 3.2.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |