GitHub Advisoryadvisory · PyPI
GHSA-qm57-vhq3-3fwf Header injection possible in Django
MEDIUM
Official page ↗
- Aliases
- CVE-2021-32052
- Ecosystem
- PyPI
- Packages
- Django
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79, CWE-88
- Reviewed
- 2021-05-19
Affected packages
• PyPI Django: >= 2.2, < 2.2.22 → fixed in 2.2.22
• PyPI Django: >= 3.1, < 3.1.10 → fixed in 3.1.10
• PyPI Django: >= 3.2, < 3.2.2 → fixed in 3.2.2
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.
Related
Alias · CVE (1)
- CVE-2021-32052 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… vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-32052 advisory
- https://github.com/django/django/commit/e1e81aa1c4427411e3c68facdd761229ffea6f6f web
- https://bugzilla.redhat.com/show_bug.cgi?id=1944801 web
- https://docs.djangoproject.com/en/3.2/releases/security web
- https://github.com/advisories/GHSA-qm57-vhq3-3fwf advisory
- https://github.com/django/django package
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-8.yaml web
- https://groups.google.com/forum/#!forum/django-announce web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE web
- https://security.netapp.com/advisory/ntap-20210611-0002 web
- https://www.djangoproject.com/weblog/2021/may/06/security-releases web
- http://www.openwall.com/lists/oss-security/2021/05/06/1 web