---
title: 'USN-5178-1: Django vulnerability | Ubuntu security notices'
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/notices/USN-5178-1
---

1. [Ubuntu Security Notices](https://ubuntu.com/security/notices)
2. USN-5178-1

---

# USN-5178-1: Django vulnerability

Publication date

7 December 2021

Overview

Django could be made to expose sensitive information.

Releases

[21.10](https://ubuntu.com/security/notices?release=impish)
[21.04](https://ubuntu.com/security/notices?release=hirsute)
[20.04 LTS](https://ubuntu.com/security/notices?release=focal)

---

Open side navigation

## Packages

* [python-django](https://ubuntu.com/security/cves?package=python-django) - High-level Python web development framework

## Details

Sjoerd Job Postmus and TengMA discovered that Django incorrectly handled
URLs with trailing newlines. A remote attacker could possibly use this
issue to bypass certain access controls.

## Update instructions

In general, a standard system update will make all the necessary changes.

[Learn more about how to get the fixes.](https://ubuntu.com/security/cves/about#security)

The problem can be corrected by updating your system to the following package versions:

| Ubuntu Release | Package Version |
| --- | --- |
| 21.10 impish | [python3-django](https://launchpad.net/ubuntu/+source/python-django) –  [2:2.2.24-1ubuntu1.1](https://launchpad.net/ubuntu/+source/python-django/2:2.2.24-1ubuntu1.1) | | |
| 21.04 hirsute | [python3-django](https://launchpad.net/ubuntu/+source/python-django) –  [2:2.2.20-1ubuntu0.3](https://launchpad.net/ubuntu/+source/python-django/2:2.2.20-1ubuntu0.3) | | |
| 20.04 LTS focal | [python3-django](https://launchpad.net/ubuntu/+source/python-django) –  [2:2.2.12-1ubuntu0.8](https://launchpad.net/ubuntu/+source/python-django/2:2.2.12-1ubuntu0.8) | | |

---

### Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.

[Get Ubuntu Pro](https://ubuntu.com/pro)

## References

* [CVE-2021-44420](https://ubuntu.com/security/CVE-2021-44420)
