Advisory

PYSEC-2021-8

Also known as: BIT-django-2021-32052, CVE-2021-32052, GHSA-qm57-vhq3-3fwf

Summary

The record has no summary.

Details

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.

Severity

Not rated by the source.

Dates

Published
2021-05-06 16:15 UTC
Modified
2023-12-06 01:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 2.2, fixed 2.2.22, introduced 3.1, fixed 3.1.10, introduced 3.2, fixed 3.2.2 (ecosystem)

Fixed versions

2.2.22, 3.1.10, 3.2.2

Fix

  • Fixed version 2.2.22
    pip install --upgrade django==2.2.22
  • Fixed version 3.1.10
    pip install --upgrade django==3.1.10
  • Fixed version 3.2.2
    pip install --upgrade django==3.2.2

Fix 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

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences