Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-44420

CVE-2021-44420: Django Auth Bypass Vulnerability

CVE-2021-44420 is an authentication bypass flaw in Django that allows attackers to circumvent access controls using URLs with trailing newlines. This article covers the technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-44420 Overview

CVE-2021-44420 is an authorization bypass vulnerability in Django, a popular Python web framework. In affected versions, HTTP requests for URLs with trailing newlines could bypass upstream access control mechanisms that rely on URL path matching. This vulnerability affects Django 2.2 before 2.2.25, 3.1 before 3.1.14, and 3.2 before 3.2.10.

Critical Impact

Attackers can bypass URL-based access control by appending newline characters to request URLs, potentially gaining unauthorized access to protected resources in Django applications that rely on upstream path-based authorization.

Affected Products

  • Django 2.2 (before version 2.2.25)
  • Django 3.1 (before version 3.1.14)
  • Django 3.2 (before version 3.2.10)
  • Red Hat Satellite 6.0
  • Debian Linux 10.0 and 11.0
  • Canonical Ubuntu Linux 20.04 LTS, 21.04, and 21.10
  • Fedora 35

Discovery Timeline

  • 2021-12-07 - Django releases security patches
  • 2021-12-08 - CVE-2021-44420 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-44420

Vulnerability Analysis

This authorization bypass vulnerability exists in Django's URL handling mechanism. When a Django application is deployed behind a reverse proxy or load balancer that performs URL-based access control, an attacker can craft malicious HTTP requests containing trailing newline characters in the URL path. The upstream access control system may fail to properly normalize or validate these URLs, while Django processes them differently, creating a mismatch that allows unauthorized access.

The vulnerability is particularly dangerous in multi-tier architectures where security boundaries are enforced at different layers. For example, if a reverse proxy blocks access to /admin/ but Django interprets /admin/\n as equivalent to /admin/, the access control can be circumvented entirely.

Root Cause

The root cause lies in inconsistent URL normalization between Django and upstream components such as reverse proxies, web application firewalls, or load balancers. When these components perform URL-based access control checks, they may not account for trailing newline characters (\n or %0a), while Django's URL routing may still match these requests to protected views. This discrepancy in URL parsing and normalization creates a security gap that attackers can exploit.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying protected URL paths in a Django application that are secured by upstream access control
  2. Crafting HTTP requests with trailing newline characters appended to the target URL
  3. Sending these requests to bypass the upstream access control checks
  4. Gaining unauthorized access to protected resources or functionality

The vulnerability mechanism involves appending newline characters (such as %0a in URL-encoded form) to protected URL paths. When an upstream reverse proxy or WAF checks the request path, it may see /admin/%0a as a different path than /admin/, allowing the request through. Django then processes this URL and may route it to the protected admin view, effectively bypassing the access control layer.

For detailed technical information, refer to the Django Security Releases announcement and the Openwall OSS Security Discussion.

Detection Methods for CVE-2021-44420

Indicators of Compromise

  • HTTP requests containing newline characters (%0a, %0d, \n, \r) in URL paths
  • Access logs showing successful requests to protected URLs with unusual trailing characters
  • Unexpected access to administrative or restricted Django endpoints
  • Pattern of requests probing URL paths with various newline encodings

Detection Strategies

  • Configure web server and proxy access logs to capture full URL-encoded request paths
  • Implement log analysis rules to detect newline characters in URL paths (look for %0a, %0d, %0d%0a patterns)
  • Deploy web application firewall rules to flag or block requests with newline characters in URL paths
  • Review authentication and authorization logs for access to protected resources from unexpected sources

Monitoring Recommendations

  • Enable verbose logging on reverse proxies and load balancers to capture full request URIs
  • Set up alerts for requests containing URL-encoded newline characters
  • Monitor Django application logs for access to admin and other protected views
  • Implement anomaly detection for unusual URL patterns in web traffic

How to Mitigate CVE-2021-44420

Immediate Actions Required

  • Upgrade Django to patched versions immediately: 2.2.25, 3.1.14, or 3.2.10 and later
  • Review upstream access control configurations for proper URL normalization
  • Audit access logs for potential exploitation attempts
  • Consider implementing additional URL validation at the application layer

Patch Information

Django has released security updates that address this vulnerability. Organizations should upgrade to the following minimum versions:

  • Django 2.2.x: Upgrade to version 2.2.25 or later
  • Django 3.1.x: Upgrade to version 3.1.14 or later
  • Django 3.2.x: Upgrade to version 3.2.10 or later

For complete patch details, see the Django Security Release Notes and the Django Weblog Security Releases.

Linux distributions have also released updated packages:

  • Fedora users should apply updates per the Fedora Package Announcement
  • Debian and Ubuntu users should check their respective security advisories

Workarounds

  • Configure upstream proxies to normalize URLs and strip newline characters before forwarding requests
  • Implement URL validation middleware that rejects requests containing newline characters in paths
  • Use Django's built-in authentication and authorization instead of relying solely on upstream path-based access control
  • Deploy WAF rules to block requests with newline characters in URL paths as a defense-in-depth measure
bash
# Example nginx configuration to block requests with newline characters
# Add to server or location block
if ($request_uri ~* "%0[aAdD]") {
    return 400;
}

# Alternatively, use map to normalize URLs
map $request_uri $normalized_uri {
    ~^(?<uri>[^%0aAdD]+) $uri;
    default $request_uri;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechDjangoproject Django

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.12%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • NVD-CWE-Other
  • Technical References
  • Django Announcement Forum

  • Fedora Package Announcement Message

  • NetApp Security Advisory NTAP-20211229-0006
  • Vendor Resources
  • Django Security Release Notes

  • Django Weblog Security Releases

  • Openwall OSS Security Discussion
  • Related CVEs
  • CVE-2025-13473: Django Auth Bypass Vulnerability

  • CVE-2026-25673: Djangoproject Django DoS Vulnerability

  • CVE-2026-1312: Djangoproject Django SQLi Vulnerability

  • CVE-2026-1207: Django SQLi Vulnerability in RasterField
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English