# CVE-2021-32052: python3-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 proh...

CVE-2021-32052 is fixed in 3 products on 1 platform, first by python3-django 2:2.2.12-1ubuntu0.7, released June 2, 2021. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2021-32052
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0317
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 6, 2021

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-django Ubuntu 18.04.6 LTS (bionic) | 1:1.11.11-1ubuntu1.17 | [python-django 1:1.11.11-1ubuntu1.17](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-django-1-1.11.11-1ubuntu1.17.md) | Apr 11, 2022 |
| Linux | python-django-common Ubuntu 18.04.6 LTS (bionic) | 1:1.11.11-1ubuntu1.17 | [python-django-common 1:1.11.11-1ubuntu1.17](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-django-common-1-1.11.11-1ubuntu1.17.md) | Apr 11, 2022 |
| Linux | python3-django Ubuntu 18.04.6 LTS (bionic) | 1:1.11.11-1ubuntu1.17 | [python3-django 1:1.11.11-1ubuntu1.17](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-django-1-1.11.11-1ubuntu1.17.md) | Apr 11, 2022 |
| Linux | python3-django Ubuntu 20.04 LTS (focal) | 2:2.2.12-1ubuntu0.7 | [python3-django 2:2.2.12-1ubuntu0.7](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-django-2-2.2.12-1ubuntu0.7.md) | Jun 2, 2021 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
