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-33804

CVE-2026-33804: Fastify Middie Auth Bypass Vulnerability

CVE-2026-33804 is an authentication bypass flaw in @fastify/middie that allows attackers to evade middleware checks via duplicate slashes. This article covers the technical details, affected versions, and mitigation.

Published: April 16, 2026

CVE-2026-33804 Overview

CVE-2026-33804 is an Authorization Bypass vulnerability affecting @fastify/middie versions 9.3.1 and earlier. The vulnerability allows attackers to bypass middleware authentication and authorization checks when the deprecated Fastify ignoreDuplicateSlashes option is enabled. The middleware path matching logic fails to account for duplicate slash normalization performed by Fastify's router, creating a path-based security bypass condition.

Critical Impact

Attackers can bypass authentication and authorization middleware by crafting requests with duplicate slashes, potentially gaining unauthorized access to protected routes and sensitive resources.

Affected Products

  • @fastify/middie versions 9.3.1 and earlier
  • Fastify applications using the deprecated ignoreDuplicateSlashes option
  • Node.js web applications relying on @fastify/middie for middleware integration

Discovery Timeline

  • April 16, 2026 - CVE CVE-2026-33804 published to NVD
  • April 16, 2026 - Last updated in NVD database

Technical Details for CVE-2026-33804

Vulnerability Analysis

This vulnerability is classified under CWE-436 (Interpretation Conflict), where the middleware path matching logic interprets request paths differently than Fastify's core router. When the deprecated ignoreDuplicateSlashes option is enabled, Fastify's router normalizes duplicate slashes in the request path (e.g., //admin//dashboard becomes /admin/dashboard). However, the @fastify/middie middleware evaluates the original, non-normalized path before routing occurs.

This interpretation conflict creates a dangerous security gap where middleware-based authentication and authorization checks can be completely bypassed. An attacker can craft requests with strategically placed duplicate slashes that fail to match protected path patterns in the middleware, while still reaching the intended route handler after Fastify normalizes the path.

Root Cause

The root cause lies in the order of operations and the inconsistent path handling between @fastify/middie and Fastify's core router. When ignoreDuplicateSlashes is enabled, the middleware receives the raw request path with duplicate slashes intact, while the router processes a normalized version. This desynchronization allows paths like //api//protected//resource to slip past middleware rules targeting /api/protected/resource.

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by sending HTTP requests with duplicate slashes in the URL path. For example, if middleware is configured to require authentication for requests matching /admin/*, a request to //admin/users or /admin//users may bypass the middleware check entirely while still being routed to the protected /admin/users endpoint by Fastify's router.

The vulnerability mechanism works as follows: middleware path matching checks the raw request path containing duplicate slashes, which does not match the expected pattern. The request proceeds without triggering authentication middleware. Fastify's router then normalizes the path by removing duplicate slashes and routes the request to the intended protected endpoint. See the GitHub Security Advisory GHSA-v9ww-2j6r-98q6 for additional technical details.

Detection Methods for CVE-2026-33804

Indicators of Compromise

  • HTTP request logs showing URLs with unexpected duplicate slashes (e.g., //api//, /admin//resource)
  • Access to protected endpoints from unauthenticated sessions or unauthorized users
  • Web server logs indicating path normalization occurring after middleware processing
  • Authentication middleware logs showing fewer requests than expected for protected routes

Detection Strategies

  • Review application configurations to identify usage of the deprecated ignoreDuplicateSlashes option in Fastify
  • Audit dependency versions to identify @fastify/middie installations at version 9.3.1 or earlier
  • Implement web application firewall (WAF) rules to detect and block requests containing consecutive slashes
  • Monitor authentication and authorization middleware logs for unexpected path patterns

Monitoring Recommendations

  • Enable detailed request logging that captures the original URL path before any normalization
  • Set up alerts for access to sensitive endpoints that bypass expected authentication flows
  • Implement anomaly detection for requests with unusual path patterns reaching protected resources
  • Regularly audit middleware execution logs against actual route handler invocations

How to Mitigate CVE-2026-33804

Immediate Actions Required

  • Upgrade @fastify/middie to version 9.3.2 or later immediately
  • Audit your Fastify configuration and disable the deprecated ignoreDuplicateSlashes option if currently enabled
  • Review access logs for evidence of exploitation attempts using duplicate slash patterns
  • Implement input validation to reject or normalize requests with duplicate slashes at the edge

Patch Information

The vulnerability is fixed in @fastify/middie version 9.3.2. This patch ensures the middleware path matching logic properly accounts for the duplicate slash normalization behavior when ignoreDuplicateSlashes is enabled. Organizations should update their package.json dependencies and run npm update @fastify/middie or the equivalent command for their package manager. For more information, refer to the GitHub Security Advisory GHSA-v9ww-2j6r-98q6 and the OpenJS Foundation Security Advisories.

Workarounds

  • Disable the deprecated ignoreDuplicateSlashes option in Fastify configuration (this is the only vendor-recommended workaround)
  • Implement a pre-handler hook that normalizes paths before middleware evaluation as a temporary measure
  • Deploy a reverse proxy or WAF rule to normalize or reject requests with duplicate slashes before they reach the application
  • Consider implementing route-level authentication checks as an additional layer of defense
bash
# Update @fastify/middie to patched version
npm update @fastify/middie@9.3.2

# Or explicitly install the patched version
npm install @fastify/middie@9.3.2

# Verify installed version
npm list @fastify/middie

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechFastify

  • SeverityHIGH

  • CVSS Score7.4

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-436
  • Technical References
  • OpenJS Foundation Security Advisories

  • GitHub Security Advisory GHSA-v9ww-2j6r-98q6
  • Related CVEs
  • CVE-2026-6414: Fastify Static Auth Bypass Vulnerability

  • CVE-2026-33806: Fastify Auth Bypass Vulnerability

  • CVE-2026-3635: Fastify Authentication Bypass Vulnerability

  • CVE-2026-3419: Fastify Auth Bypass 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