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

CVE-2026-26962: Rack Header Injection Vulnerability

CVE-2026-26962 is a header injection flaw in Rack's Multipart Parser that incorrectly unfolds multipart headers, enabling response splitting attacks. This article covers technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2026-26962 Overview

CVE-2026-26962 is a header injection vulnerability affecting Rack, the modular Ruby web server interface widely used across Ruby on Rails and other Ruby-based web applications. The vulnerability exists in the Rack::Multipart::Parser component, which incorrectly handles folded multipart part headers. When a multipart header contains an obs-fold sequence (obsolete line folding), Rack preserves embedded CRLF characters in parsed parameter values such as filename or name instead of properly removing the folded line break during the unfolding process. This flaw can enable downstream HTTP header injection or response splitting attacks when applications reuse these parsed values in HTTP response headers.

Critical Impact

Applications that pass user-controlled multipart header values into HTTP responses may be vulnerable to header injection attacks, potentially enabling response splitting, cache poisoning, or cross-site scripting through injected headers.

Affected Products

  • Rack versions 3.2.0 through 3.2.5
  • Ruby web applications using affected Rack versions with multipart form handling
  • Rails applications and other Ruby frameworks depending on vulnerable Rack releases

Discovery Timeline

  • 2026-04-02 - CVE CVE-2026-26962 published to NVD
  • 2026-04-02 - Last updated in NVD database

Technical Details for CVE-2026-26962

Vulnerability Analysis

This vulnerability is classified as CWE-93 (Improper Neutralization of CRLF Sequences), commonly known as CRLF Injection or HTTP Response Splitting. The root issue lies in how Rack::Multipart::Parser processes multipart form data headers that contain obsolete folding (obs-fold) sequences as defined in RFC 7230.

HTTP headers historically allowed long header values to be "folded" across multiple lines by inserting a CRLF followed by at least one space or horizontal tab. While this practice is deprecated, parsers must still handle these sequences for compatibility. The correct behavior is to unfold these sequences by replacing the CRLF and following whitespace with a single space character.

However, Rack's multipart parser fails to properly unfold these sequences. Instead of stripping the CRLF characters during the unfolding process, it preserves them within the parsed parameter values. When an application subsequently uses these values—such as a filename from a file upload—in constructing HTTP response headers, the preserved CRLF characters can break out of the intended header context.

An attacker can craft malicious multipart requests with obs-fold sequences containing CRLF characters followed by arbitrary header content. If the application echoes the parsed filename or other parameter in a response header (e.g., Content-Disposition for file downloads), the injected CRLF terminates that header and allows injection of additional headers or even a complete HTTP response body.

Root Cause

The vulnerability stems from improper implementation of the header unfolding algorithm in Rack::Multipart::Parser. The parser recognizes obs-fold sequences but fails to properly sanitize them by removing the embedded CRLF characters. According to HTTP specifications, when unfolding obsolete line folding, the CRLF and subsequent whitespace should be replaced with a single space. Rack's implementation preserves the raw CRLF bytes, creating an injection vector when these values are reused in HTTP contexts.

Attack Vector

The attack vector is network-based and requires an attacker to send a specially crafted multipart HTTP request to a vulnerable application. The attack complexity is considered high because successful exploitation depends on how the target application handles parsed multipart values. Specifically, the application must:

  1. Accept multipart form data using the vulnerable Rack versions
  2. Extract parameter values (such as filename) from the parsed multipart data
  3. Include those values in HTTP response headers without additional sanitization

The vulnerability mechanism involves embedding CRLF sequences within obs-fold patterns in multipart Content-Disposition headers. When Rack parses the multipart request, it incorrectly preserves these CRLF sequences. If the application then uses the parsed filename in a response header—a common pattern for file download functionality—the attacker-controlled CRLF can inject arbitrary headers or split the HTTP response.

For detailed technical information and proof-of-concept examples, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-26962

Indicators of Compromise

  • Unusual multipart form submissions containing obs-fold sequences (CRLF followed by whitespace) in header values
  • HTTP response headers containing unexpected line breaks or additional injected headers
  • Application logs showing malformed Content-Disposition or other multipart header values with embedded control characters
  • Evidence of cache poisoning or XSS attacks originating from file upload functionality

Detection Strategies

  • Monitor web application firewall (WAF) logs for multipart requests containing CRLF sequences (0x0D 0x0A) within header parameter values
  • Implement request inspection rules to detect obs-fold patterns in multipart Content-Disposition headers
  • Review application code for patterns where multipart-parsed values (especially filename) are used in response headers
  • Use static analysis tools to identify code paths that pass user-controlled input to HTTP header construction methods

Monitoring Recommendations

  • Enable detailed logging for multipart form processing in Ruby web applications
  • Configure intrusion detection systems to alert on HTTP requests with unusual control characters in multipart boundaries
  • Monitor for anomalous HTTP responses that contain more headers than expected or unexpected Set-Cookie headers
  • Implement response header validation to detect injected content before responses are sent to clients

How to Mitigate CVE-2026-26962

Immediate Actions Required

  • Upgrade Rack to version 3.2.6 or later immediately
  • Audit application code to identify locations where multipart-parsed values are used in HTTP response headers
  • Implement additional sanitization for any user-controlled values included in response headers
  • Consider using Content Security Policy headers to mitigate potential XSS from header injection

Patch Information

The vulnerability has been patched in Rack version 3.2.6. The fix properly implements the obs-fold unfolding algorithm by stripping CRLF sequences from multipart header parameter values during parsing. Organizations should update their Gemfile to specify the patched version and run bundle update rack to apply the fix.

For applications using Rails or other frameworks that bundle Rack, ensure the framework's dependency resolution pulls in Rack 3.2.6 or later. Review the GitHub Security Advisory for additional details on the patch.

Workarounds

  • If immediate upgrade is not possible, implement middleware to sanitize multipart-parsed values before they reach application code
  • Add response header validation that strips or rejects values containing CRLF sequences before setting headers
  • Use allow-listing for acceptable characters in filename and other multipart parameters
  • Configure reverse proxies or WAFs to normalize or reject requests with obs-fold sequences in multipart headers
bash
# Update Rack to patched version
bundle update rack

# Verify installed version is 3.2.6 or later
bundle show rack
# Expected output: rack (3.2.6) or higher

# Alternative: Pin specific version in Gemfile
echo "gem 'rack', '>= 3.2.6'" >> Gemfile
bundle install

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechRack

  • SeverityMEDIUM

  • CVSS Score4.8

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-93
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-32762: Rack Header Parsing Vulnerability

  • CVE-2026-26961: Rack Multipart Smuggling Vulnerability

  • CVE-2025-27111: Rack Log Injection Vulnerability

  • CVE-2025-25184: Rack Log Injection 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