Security mailing lists by PureSourceCode

CVE-2021-32052

MEDIUM 6.1CVSS 3.1

Header injection possible in Django

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.

Published
6 May 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-79CWE-88
Also known as
BIT-django-2021-32052GHSA-qm57-vhq3-3fwfPYSEC-2021-8
Sources
NVDJSONOSV GHSA-qm57-vhq3-3fwfJSONOSV PYSEC-2021-8JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub 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
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 2.2, < 2.2.22 2.2.22
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 3.1, < 3.1.10 3.1.10
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 3.2, < 3.2.2 3.2.2
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
= 34
OSV PyPI django >= 2.2, < 2.2.22 2.2.22
OSV PyPI django >= 3.1, < 3.1.10 3.1.10
OSV PyPI django >= 3.2, < 3.2.2 3.2.2
OSV PyPI django >= 2.2, < 2.2.22; >= 3.1, < 3.1.10; >= 3.2, < 3.2.2 2.2.22, 3.1.10, 3.2.2

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 6 May 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 May 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Jun 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.