VDB

CVE-2021-32052

CVE-2021-32052 PUBLISHED CVSS 6.099999904632568 MEDIUM

Header injection possible in Django

Reported by mitre · Published May 6, 2021

django is fixed in 3.2.2, 3.1.10 and 2.2.22 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
djangoPyPI3.2.2, 3.1.10, 2.2.22
python-djangoArch Linux3.2.2-1
djangoBitnami3.2.2, 3.1.10, 2.2.22
python-djangoUbuntu:18.04:LTS1:1.11.11-1ubuntu1.17
djangodjangoproject3.2.2, 3.1.10, 2.2.22

Risk scores

CVSS 3.1
6.099999904632568
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected products

VendorProductVersions
n/an/an/a
archpython-django0
n/an/a*
PyPIDjango2.2, 3.1, 3.2

Timeline

  • May 6, 2021 CVE Published
  • May 7, 2021 EPSS Score (30 in total, the first dated here)
  • Jun 9, 2023 PoC Published (42 in total, the first dated here)
  • Mar 7, 2026 Distribution Patch (5 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (12 in total, the first dated here)
  • Aug 1, 2026 Coalition ESS Score
  • Sep 20, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-32052
vulnetix vdb fixes CVE-2021-32052

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32052/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›