A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-34786

CVE-2026-34786: Rack Header Bypass Vulnerability

CVE-2026-34786 is an authentication bypass vulnerability in Rack that allows attackers to bypass security headers on static content through URL encoding. This article covers technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2026-34786 Overview

CVE-2026-34786 is a security header bypass vulnerability in Rack, the modular Ruby web server interface used by Rails and many other Ruby frameworks. The flaw exists in Rack::Static#applicable_rules, which evaluates several header_rules types against the raw URL-encoded PATH_INFO. The underlying file-serving logic, however, decodes the path before serving the file. Attackers can request a URL-encoded variant of a static path to retrieve the same file without the security-relevant response headers that header_rules was configured to apply. The issue is fixed in Rack versions 2.2.23, 3.1.21, and 3.2.6.

Critical Impact

Remote, unauthenticated attackers can strip security headers (such as Content-Security-Policy, X-Frame-Options, or Strict-Transport-Security) from static asset responses by requesting URL-encoded path variants.

Affected Products

  • Rack versions prior to 2.2.23
  • Rack versions 3.0.x through 3.1.20
  • Rack versions 3.2.0 through 3.2.5

Discovery Timeline

  • 2026-04-02 - CVE-2026-34786 published to the National Vulnerability Database
  • 2026-04-16 - Last updated in NVD database

Technical Details for CVE-2026-34786

Vulnerability Analysis

The vulnerability stems from inconsistent path handling between two stages of Rack::Static request processing. When a static request arrives, Rack::Static#applicable_rules inspects PATH_INFO to determine which configured header_rules apply to the response. This inspection occurs against the raw, URL-encoded path string. The file lookup stage then performs URL decoding before resolving the static asset on disk.

This decoding mismatch is classified as [CWE-180] Incorrect Behavior Order: Validate Before Canonicalize. An attacker who requests /%61ssets/app.js instead of /assets/app.js receives the same file because the file server canonicalizes the path. The rule matcher, operating on the encoded string, fails to match the /assets prefix and therefore omits any headers tied to that rule.

Root Cause

The root cause is that applicable_rules matches header-rule patterns against an un-normalized path representation. Path canonicalization must occur before, not after, security policy evaluation. Any rule that depends on prefix matching, suffix matching, or path equality can be evaded by substituting URL-encoded equivalents for ASCII characters.

Attack Vector

An attacker sends an HTTP request to a Rack-served static asset using percent-encoded characters in the path. The encoded path bypasses the header_rules match logic but still resolves to the intended file. The response returns the asset content without the protective headers. Downstream attacks become possible when the missing headers were the primary defense, such as Content-Security-Policy blocking script execution or X-Frame-Options preventing clickjacking on framed static HTML.

No authentication or user interaction is required. Exploitation requires only the ability to send HTTP requests to the affected application.

Detection Methods for CVE-2026-34786

Indicators of Compromise

  • HTTP access logs containing percent-encoded characters in paths to static asset directories, such as %61, %2F, or mixed-case encodings of normal ASCII characters
  • Responses to static asset requests that lack expected security headers like Content-Security-Policy, X-Frame-Options, or Strict-Transport-Security
  • Repeated requests to the same asset path with varying encoding patterns from a single source

Detection Strategies

  • Compare response headers between canonical and percent-encoded variants of the same static path during security testing
  • Parse web server access logs for static asset URIs containing % sequences that decode to standard ASCII letters
  • Audit Rack application configurations that use Rack::Static with header_rules to identify exposed deployments

Monitoring Recommendations

  • Forward Rack and reverse-proxy access logs to a centralized analytics platform and alert on anomalous encoding in static paths
  • Implement automated header-presence checks in CI pipelines that probe both encoded and decoded variants of protected paths
  • Track the installed Rack gem version across application inventories and flag any host running a vulnerable release

How to Mitigate CVE-2026-34786

Immediate Actions Required

  • Upgrade Rack to version 2.2.23, 3.1.21, or 3.2.6 depending on the major version branch in use
  • Inventory all Ruby applications and bundled gems to identify deployments running affected Rack versions
  • Validate that security headers are returned for both encoded and decoded variants of protected static paths after patching

Patch Information

The Rack maintainers released fixes in versions 2.2.23, 3.1.21, and 3.2.6. The patched releases normalize PATH_INFO before evaluating header_rules, ensuring that encoded and decoded paths produce identical header sets. Details are available in the Rack GitHub Security Advisory GHSA-q4qf-9j86-f5mh.

Workarounds

  • Move security header enforcement to a reverse proxy such as nginx or a CDN edge layer that applies headers uniformly regardless of path encoding
  • Replace Rack::Static for security-sensitive deployments with middleware that canonicalizes paths before rule evaluation
  • Configure a Web Application Firewall rule to reject or canonicalize requests containing percent-encoded ASCII alphanumerics in static asset paths
bash
# Update Rack via Bundler
bundle update rack

# Verify installed version
bundle show rack

# Pin a fixed version in Gemfile
# gem 'rack', '>= 3.2.6'

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechRack

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-180
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-39324: Rack::Session Auth Bypass Vulnerability

  • CVE-2026-34835: Rack Auth Bypass Vulnerability

  • CVE-2025-46336: Rack::Session Auth Bypass Vulnerability

  • CVE-2026-26961: Rack Ruby Web Server CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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