django
Affected
- introduced
2.2, fixed2.2.22(ecosystem)
Fixed versions
2.2.22
Fix
- Fixed version
2.2.22pip install --upgrade django==2.2.22
Advisory
Also known as: BIT-django-2021-32052, CVE-2021-32052, PYSEC-2021-8
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.
Medium Basis: The source's own band: MODERATE
2.2, fixed 2.2.22 (ecosystem)2.2.22
2.2.22pip install --upgrade django==2.2.223.1, fixed 3.1.10 (ecosystem)3.1.10
3.1.10pip install --upgrade django==3.1.103.2, fixed 3.2.2 (ecosystem)3.2.2
3.2.2pip install --upgrade django==3.2.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0