CVE-2021-32052

Aliases:GHSA-qm57-vhq3-3fwfBIT-django-2021-32052PYSEC-2021-8
Modified
Published: 06 May 2021, 15:49
Last modified:03 Aug 2024, 23:17

Vulnerability Summary

Overall Risk (default)
medium
25/100
CVSS Score
6.1 MEDIUM
v3.1 (nvd)
EPSS Score
1.86% LOW
2% probability -0.05%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

06 May 2021, 15:49
Published
Vulnerability first disclosed
03 Aug 2024, 23:17
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v4.0MEDIUMScore: 5.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
  • v3.1MEDIUMScore: 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • v2.0MEDIUMScore: 4.3AV:N/AC:M/Au:N/C:N/I:P/A:N

EPSS Trends

Current EPSS score: 1.86% Percentile: 83%

Techniques & Countermeasures

  • CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

    The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Affected Systems

  • djangoprojectdjango

    ≥ 2.2, < 2.2.22 | ≥ 3.1, < 3.1.10 | ≥ 3.2, < 3.2.2

  • fedoraprojectfedora

    34

  • PyPIdjango

    ≥ 2.2, < 2.2.22 | ≥ 3.1, < 3.1.10 | ≥ 3.2, < 3.2.2

References (18)