Read the docs
TI-2021-12017 Aliases CVE-2021-32052GHSA-qm57-vhq3-3fwf

In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python…

Priority LOW 33CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting, Code execution
Confidentiality · integrity · availability
Low · Low · None
Fix status
Partial Red Hat: 3 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79 and CWE-88.

Summary

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.

Why it matters now

EPSS 0.03172 88th percentileScored 2026-11-07
Fix Partial Django (PyPI): 2.2.22, 3.1.10, 3.2.2Red Hat: 3 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
—Django (PyPI)2.2 to before 2.2.222.2.22Patch availableGHSA-qm57-vhq3-3fwf
—Django (PyPI)3.1 to before 3.1.103.1.10Patch availableGHSA-qm57-vhq3-3fwf
—Django (PyPI)3.2 to before 3.2.23.2.2Patch availableGHSA-qm57-vhq3-3fwf
  • — Vendor— Affected all versions Fixed in — No fix listed CNA
  • Django (PyPI) Vendor— Affected 2.2 to before 2.2.22 Fixed in 2.2.22 Patch available GHSA-qm57-vhq3-3fwf
  • Django (PyPI) Vendor— Affected 3.1 to before 3.1.10 Fixed in 3.1.10 Patch available GHSA-qm57-vhq3-3fwf
  • Django (PyPI) Vendor— Affected 3.2 to before 3.2.2 Fixed in 3.2.2 Patch available GHSA-qm57-vhq3-3fwf

CPE configurations NVD · 3

CPEVersionsRoleVendor
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*2.2 to before 2.2.22; 3.1 to before 3.1.10; 3.2 to before 3.2.2Vulnerabledjangoproject
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*3.9.5Running onpython-pillow
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*34VulnerableFedoraproject
  • cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* Versions 2.2 to before 2.2.22; 3.1 to before 3.1.10; 3.2 to before 3.2.2 Vulnerable ·djangoproject
  • cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions 3.9.5 Running on ·python-pillow
  • cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject

Remediation

  • Fix · GHSA-qm57-vhq3-3fwf Django (PyPI) Fixed in 2.2.22 Advisory →
  • Fix · GHSA-qm57-vhq3-3fwf Django (PyPI) Fixed in 3.1.10 Advisory →
  • Fix · GHSA-qm57-vhq3-3fwf Django (PyPI) Fixed in 3.2.2 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Ansible Automation Platform 1.2AffectedNo fix yet
Red Hat Ceph Storage 2AffectedNo fix planned: Will not fix
Red Hat Ceph Storage 3AffectedNo fix planned: Will not fix
Not affected: 8 products
  • Red Hat Ansible Automation Platform 1.2
  • Red Hat Ansible Tower 3
  • Red Hat OpenStack Platform 10 (Newton)
  • Red Hat OpenStack Platform 13 (Queens)
  • Red Hat OpenStack Platform 16.1
  • Red Hat Satellite 6
  • Red Hat Storage 3
  • Red Hat Update Infrastructure 3 for Cloud Providers

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-32052
  2. 2026-10-03 Alias added: GHSA-qm57-vhq3-3fwf

References

Sources