The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2020-26137

CVE-2020-26137: Python Urllib3 CRLF Injection Vulnerability

CVE-2020-26137 is a CRLF injection vulnerability in Python Urllib3 that allows attackers to insert CR and LF control characters in HTTP requests. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-26137 Overview

CVE-2020-26137 is a CRLF injection vulnerability in Python's urllib3 library versions prior to 1.25.9. This vulnerability allows an attacker who controls the HTTP request method to inject CR (Carriage Return) and LF (Line Feed) control characters through the first argument of the putrequest() function. The flaw enables HTTP request smuggling and response splitting attacks, potentially leading to cache poisoning, session hijacking, or cross-site scripting.

Critical Impact

Attackers can inject arbitrary HTTP headers or manipulate request structure by embedding CRLF characters in the HTTP method parameter, potentially enabling HTTP response splitting attacks against downstream applications.

Affected Products

  • Python urllib3 (versions prior to 1.25.9)
  • Canonical Ubuntu Linux 16.04, 18.04, 20.04
  • Debian Linux 9.0
  • Oracle Communications Cloud Native Core Network Function Cloud Native Environment 22.2.0
  • Oracle ZFS Storage Appliance Kit 8.8

Discovery Timeline

  • September 30, 2020 - CVE-2020-26137 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2020-26137

Vulnerability Analysis

This CRLF injection vulnerability exists in urllib3's HTTP request handling mechanism. When processing HTTP requests, the library fails to properly validate and sanitize control characters in the HTTP method parameter passed to putrequest(). An attacker who can control or influence the HTTP method argument can inject CRLF sequences (\r\n) to break out of the intended HTTP request structure.

The vulnerability is similar to CVE-2020-26116, which affected Python's standard library http.client. In both cases, the lack of input validation on the method parameter allows malicious injection of HTTP headers or even entire HTTP requests, leading to request smuggling scenarios.

Root Cause

The root cause is classified under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component). The urllib3 library's HTTPConnection.request() method did not validate the method parameter for control characters before incorporating it into the HTTP request. This lack of input sanitization allows CRLF characters to be interpreted as HTTP protocol delimiters rather than literal content.

Attack Vector

The attack requires network access and the ability to influence the HTTP method parameter in urllib3 requests. An attacker can exploit this by:

  1. Injecting \r\n (CRLF) sequences into the method parameter
  2. The injected characters terminate the request line prematurely
  3. Additional attacker-controlled content is interpreted as new HTTP headers or a separate request
  4. This can lead to HTTP response splitting, cache poisoning, or session manipulation

The security patch introduced validation to raise a ValueError if control characters are detected in the method parameter:

text
 Changes
 =======
 
+master (dev)
+------------
+
+* Raise ``ValueError`` if control characters are given in
+  the ``method`` parameter of ``HTTPConnection.request()`` (Pull #1800)
+
+
 1.25.8 (2020-01-20)
 -------------------

Source: GitHub Commit for urllib3

The fix adds regex-based validation in src/urllib3/connection.py:

python
 from __future__ import absolute_import
+import re
 import datetime
 import logging
 import os

Source: GitHub Commit for urllib3

Detection Methods for CVE-2020-26137

Indicators of Compromise

  • Unusual HTTP requests containing encoded CRLF sequences (%0d%0a or \r\n) in request method fields
  • Web server logs showing malformed HTTP methods with embedded newlines
  • HTTP responses containing injected headers not originating from the application
  • Cache entries with unexpected or manipulated content

Detection Strategies

  • Monitor application logs for HTTP requests with control characters in method fields
  • Implement Web Application Firewall (WAF) rules to detect CRLF injection patterns in HTTP requests
  • Scan Python environments for urllib3 versions below 1.25.9 using dependency scanning tools
  • Review code for user-controlled input being passed to urllib3 HTTP method parameters

Monitoring Recommendations

  • Deploy network-level monitoring to detect HTTP request smuggling patterns
  • Enable verbose logging for HTTP client libraries in production environments
  • Use Software Composition Analysis (SCA) tools to continuously monitor for vulnerable urllib3 versions
  • Set up alerts for applications making HTTP requests with unusual method patterns

How to Mitigate CVE-2020-26137

Immediate Actions Required

  • Upgrade urllib3 to version 1.25.9 or later immediately
  • Audit applications for any code paths where user input could influence HTTP method parameters
  • Apply vendor patches for affected Oracle and Linux distributions
  • Review and update all Python dependencies that may bundle or depend on urllib3

Patch Information

The vulnerability was addressed in urllib3 version 1.25.9. The fix validates the HTTP method parameter and raises a ValueError if control characters are detected. Patches are available through the following resources:

  • GitHub Commit for urllib3
  • GitHub Pull Request #1800
  • Ubuntu Security Notice USN-4570-1
  • Debian LTS Security Announcement
  • Oracle July 2022 Security Alert

Workarounds

  • Implement strict input validation on any user-controllable data that may reach HTTP client methods
  • Use application-level filtering to reject requests containing CRLF sequences before they reach urllib3
  • If immediate patching is not possible, wrap urllib3 calls with validation logic that checks for control characters in method parameters
  • Consider using network segmentation to limit the impact of potential HTTP request smuggling attacks
bash
# Upgrade urllib3 to patched version
pip install --upgrade 'urllib3>=1.25.9'

# Verify installed version
pip show urllib3 | grep Version

# Check for vulnerable versions in requirements
pip list --outdated | grep urllib3

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechUrllib3

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.26%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-74
  • Technical References
  • Debian LTS Security Announcement

  • Debian LTS Security Update

  • Ubuntu Security Notice USN-4570-1
  • Vendor Resources
  • Python Issue Tracker Entry

  • GitHub Commit for urllib3

  • GitHub Pull Request #1800

  • Oracle July 2022 Security Alert

  • Oracle October 2021 Security Alert
  • Related CVEs
  • CVE-2025-50182: Python Urllib3 Redirect Vulnerability

  • CVE-2026-21441: urllib3 Python Library DoS Vulnerability

  • CVE-2025-66471: Python Urllib3 DoS Vulnerability

  • CVE-2025-66418: Python Urllib3 DOS Vulnerability
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