CVE-2021-44420: Potential bypass of upstream access control in Django

django Updated 02 Oct 2025

Summary

09/12/2021
Yes i
Moderate
7.3

CVE-2021-44420: Potential bypass of an upstream access control based on URL paths in Django. Affects django across 3 version ranges.

>= 2.2a1, < 2.2.25 >= 3.0a1, < 3.1.14 >= 3.2a1, < 3.2.10

Fixed in 2.2.25, 3.1.14 or 3.2.10, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2021-44420 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Django is a popular Python web framework used for building web applications. It provides a robust set of tools and features for efficient development. However, Django versions 2.2 before 2.2.25, 3.1 before 3.1.14, and 3.2 before 3.2.10 are vulnerable to a potential bypass of upstream access control based on URL paths. This vulnerability allows HTTP requests with trailing newlines to bypass access control mechanisms. The severity of this vulnerability is rated as HIGH.

Vulnerability Detail

The vulnerability in Django allows attackers to bypass access control based on URL paths. By appending trailing newlines to URLs, attackers can evade the intended access restrictions and gain unauthorized access to protected resources. This issue has been identified as a low severity vulnerability according to the Django security policy. However, it is still important to address this vulnerability to prevent potential unauthorized access and protect sensitive data.

How To Fix

Latest published version: 6.1.2 as of 22 Oct 2026

pip install --upgrade "django==6.1.2"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 2.2a1, < 2.2.25 2.2.25
    pip install --upgrade "django==2.2.25"
  • >= 3.0a1, < 3.1.14 3.1.14
    pip install --upgrade "django==3.1.14"
  • >= 3.2a1, < 3.2.10 3.2.10
    pip install --upgrade "django==3.2.10"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. It is recommended to apply the fix by upgrading Django to the fixed versions.

Conclusion

The vulnerability in Django versions 2.2 before 2.2.25, 3.1 before 3.1.14, and 3.2 before 3.2.10 allows for potential bypass of upstream access control based on URL paths. It is recommended to upgrade Django to the fixed versions to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for django →

Share this vulnerability

FAQ

The vulnerability allows attackers to bypass access control and potentially gain unauthorized access to protected resources.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

Yes, the CVSS score for this vulnerability is 7.3.

There are no known exploits for this vulnerability at the moment.

You can refer to the GitHub advisory database for detailed information about this vulnerability. The link to the advisory is provided in the 'database_specific' field of the vulnerability details.

Related vulnerabilities

Recent vulnerabilities recorded for django.

How To Fix

Latest published version: 6.1.2 as of 22 Oct 2026

pip install --upgrade "django==6.1.2"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 2.2a1, < 2.2.25 2.2.25
    pip install --upgrade "django==2.2.25"
  • >= 3.0a1, < 3.1.14 3.1.14
    pip install --upgrade "django==3.1.14"
  • >= 3.2a1, < 3.2.10 3.2.10
    pip install --upgrade "django==3.2.10"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback