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.
Published: 2021-05-06
Score: 6.1 Medium
EPSS: 2.6% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

No analysis available yet.

Remediation

No remediation available yet.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2021-0065 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.
Github GHSA Github GHSA GHSA-qm57-vhq3-3fwf Header injection possible in Django
Ubuntu USN Ubuntu USN USN-4975-1 Django vulnerabilities
Ubuntu USN Ubuntu USN USN-5373-1 Django vulnerabilities
Ubuntu USN Ubuntu USN USN-5373-2 Django vulnerabilities
History

No history.

Subscriptions

Djangoproject Django
Fedoraproject Fedora
Python Python
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-03T23:17:28.409Z

Reserved: 2021-05-05T00:00:00.000Z

Link: CVE-2021-32052

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2021-05-06T16:15:07.520

Modified: 2024-11-21T06:06:46.180

Link: CVE-2021-32052

cve-icon Redhat

Severity : Important

Publid Date: 2021-05-06T00:00:00Z

Links: CVE-2021-32052 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses