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-2026-22779

CVE-2026-22779: Neoteroi Blacksheep CRLF Vulnerability

CVE-2026-22779 is a CRLF injection flaw in Neoteroi Blacksheep's HTTP Client that allows attackers to modify HTTP requests or insert headers. This post covers the technical details, affected versions, and mitigation.

Published: January 23, 2026

CVE-2026-22779 Overview

BlackSheep is an asynchronous web framework designed to build event-based web applications with Python. A CRLF injection vulnerability has been identified in the HTTP Client implementation of BlackSheep prior to version 2.4.6. The vulnerability stems from missing header validation, which enables attackers to modify HTTP requests by inserting new headers or even creating entirely new HTTP requests when developers pass unsanitized user input directly into headers.

Critical Impact

Attackers can manipulate HTTP requests through CRLF injection, potentially enabling HTTP response splitting, cache poisoning, or cross-site scripting attacks when user-controlled input reaches HTTP headers without proper sanitization.

Affected Products

  • Neoteroi BlackSheep versions prior to 2.4.6
  • BlackSheep HTTP Client component (server-side ASGI handling is not affected)
  • Applications passing unsanitized user input to HTTP headers

Discovery Timeline

  • 2026-01-14 - CVE CVE-2026-22779 published to NVD
  • 2026-01-22 - Last updated in NVD database

Technical Details for CVE-2026-22779

Vulnerability Analysis

The CRLF injection vulnerability in BlackSheep's HTTP Client occurs due to insufficient validation of header values before they are written to HTTP requests. CRLF (Carriage Return Line Feed) characters (\r\n) are used to separate HTTP headers. When user-controlled input containing these characters is passed to the write_header function without sanitization, attackers can inject arbitrary headers or terminate the header section prematurely to inject a malicious request body.

The exploitation requires a specific precondition: developers must pass unsanitized user input directly into HTTP headers. While this limits the attack surface, applications that dynamically construct headers based on user input (such as proxy applications or API gateways) are particularly vulnerable.

Notably, the server-side component of BlackSheep is not affected because it delegates response header handling to the underlying ASGI server, which provides its own header sanitization.

Root Cause

The root cause lies in the write_header function within blacksheep/scribe.py, which previously concatenated header names and values without stripping or rejecting CRLF characters. This allowed malicious input containing \r or \n characters to break out of the intended header context and inject additional HTTP protocol elements.

Attack Vector

The attack vector is network-based, requiring an attacker to control input that flows into HTTP header values in the BlackSheep HTTP Client. Typical exploitation scenarios include:

  1. Applications that forward user-supplied headers to backend services
  2. Proxy implementations that copy request headers
  3. API clients that include user input in custom headers

The security patch introduces a _nocrlf() function that sanitizes header values by removing carriage return and newline characters:

python
def _nocrlf(value: bytes) -> bytes:
    """Sanitize the given value to prevent CRLF injection."""
    return value.replace(b"\r", b"").replace(b"\n", b"")


# Header writing utilities
def write_header(header):
    """
    This function writes a single HTTP header. It is used only by the HTTP Client part,
    because the server relies on the ASGI server to handle headers.
    """
    # Sanitize header name and value to prevent CRLF injection
    return _nocrlf(header[0]) + b": " + _nocrlf(header[1]) + b"\r\n"

Source: GitHub Commit bd4ecb95

Detection Methods for CVE-2026-22779

Indicators of Compromise

  • HTTP requests containing unexpected headers not set by the application logic
  • Log entries showing headers with encoded CRLF sequences (%0d%0a, %0D%0A)
  • Unusual HTTP request patterns suggesting request smuggling attempts
  • Backend services receiving malformed or duplicate headers

Detection Strategies

  • Review application code for instances where user input is passed to BlackSheep HTTP Client headers without validation
  • Implement web application firewall (WAF) rules to detect CRLF sequences in header values
  • Monitor HTTP traffic for anomalous header patterns or request smuggling indicators
  • Use static analysis tools to identify unsafe header construction patterns in Python code

Monitoring Recommendations

  • Enable detailed HTTP request logging at the application and infrastructure level
  • Configure alerts for requests containing URL-encoded newline characters in header fields
  • Monitor for unusual patterns in downstream service logs that may indicate injected requests
  • Implement request integrity validation between services in microservice architectures

How to Mitigate CVE-2026-22779

Immediate Actions Required

  • Upgrade BlackSheep to version 2.4.6 or later immediately
  • Audit application code for instances where user-controlled data is passed to HTTP headers
  • Implement input validation to strip or reject CRLF characters from user input before header construction
  • Review and test any proxy or forwarding functionality that handles HTTP headers

Patch Information

The vulnerability is fixed in BlackSheep version 2.4.6. The patch introduces the _nocrlf() sanitization function in both the Python (blacksheep/scribe.py) and Cython (blacksheep/scribe.pxd) implementations. The fix removes carriage return and newline characters from both header names and values before constructing the HTTP header line.

For detailed patch information, see the GitHub Security Advisory GHSA-6pw3-h7xf-x4gp and Release v2.4.6.

Workarounds

  • Implement custom input validation to strip \r and \n characters from any user input before passing to HTTP headers
  • Use allowlists for header values where possible, rejecting any input containing control characters
  • Wrap HTTP Client calls with a sanitization layer that validates all header inputs
  • Consider using a reverse proxy with CRLF injection protection in front of affected applications
bash
# Upgrade BlackSheep to patched version
pip install --upgrade blacksheep>=2.4.6

# Verify installed version
pip show blacksheep | grep Version

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechNeoteroi Blacksheep

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-113

  • NVD-CWE-Other
  • Technical References
  • GitHub Release v2.4.6

  • GitHub Security Advisory GHSA-6pw3-h7xf-x4gp
  • Vendor Resources
  • GitHub Commit Overview
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
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