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

CVE-2026-2880: Fastify Middie Auth Bypass Vulnerability

CVE-2026-2880 is an authentication bypass flaw in @fastify/middie versions before 9.2.0 that allows attackers to circumvent path-scoped middleware. This article covers technical details, affected versions, and mitigation steps.

Published: March 6, 2026

CVE-2026-2880 Overview

A vulnerability in @fastify/middie versions prior to 9.2.0 can result in authentication and authorization bypass when using path-scoped middleware. When Fastify router normalization options are enabled—such as ignoreDuplicateSlashes, useSemicolonDelimiter, and related trailing-slash behavior—crafted request paths may bypass middleware checks while still being routed to protected handlers.

This authentication bypass vulnerability occurs due to improper input validation (CWE-20) in how the middleware processes path-scoped configurations. Attackers can exploit the discrepancy between how @fastify/middie validates paths and how the Fastify router normalizes them, allowing unauthorized access to protected endpoints.

Critical Impact

Attackers can bypass authentication and authorization mechanisms by crafting malicious request paths, potentially gaining unauthorized access to protected resources and sensitive data.

Affected Products

  • @fastify/middie versions < 9.2.0
  • Applications using path-scoped middleware with router normalization options enabled
  • Fastify applications with ignoreDuplicateSlashes, useSemicolonDelimiter, or trailing-slash normalization configured

Discovery Timeline

  • 2026-02-27 - CVE-2026-2880 published to NVD
  • 2026-03-02 - Last updated in NVD database

Technical Details for CVE-2026-2880

Vulnerability Analysis

This authorization bypass vulnerability stems from a path normalization inconsistency between @fastify/middie and the Fastify router. When developers configure path-scoped middleware to protect specific routes (for example, app.use('/secret', auth)), they expect all requests to those paths to pass through the authentication middleware. However, when Fastify's router normalization options are enabled, the middleware and router handle path matching differently.

The middleware performs its path check before normalization occurs, while the router normalizes the path before matching it to handlers. This creates a window where specially crafted paths can slip past middleware validation but still route successfully to protected endpoints.

Root Cause

The root cause is improper input validation (CWE-20) in the path matching logic of @fastify/middie. The middleware does not account for Fastify's router normalization behaviors when validating whether a request path matches a protected scope. Specifically:

  • Duplicate Slash Handling: When ignoreDuplicateSlashes is enabled, paths like //secret or /secret//endpoint may bypass middleware configured for /secret
  • Semicolon Delimiter: The useSemicolonDelimiter option allows semicolons to act as path separators, which the middleware may not properly validate
  • Trailing Slash Behavior: Inconsistent handling of trailing slashes between middleware path matching and router normalization

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can craft HTTP requests with manipulated paths that:

  1. Fail to match the middleware's path-scoping logic
  2. Successfully match the router's normalized path to a protected handler

For example, if an application uses app.use('/secret', authMiddleware) to protect all routes under /secret, an attacker might craft requests using duplicate slashes, semicolon delimiters, or other normalization-exploitable patterns to access those routes without triggering the authentication middleware.

The vulnerability manifests in the path matching logic when router normalization options are enabled. Attackers can construct paths that exploit the discrepancy between middleware validation and router normalization. For detailed technical information and specific bypass techniques, see the GitHub Security Advisory.

Detection Methods for CVE-2026-2880

Indicators of Compromise

  • Unusual request paths containing duplicate slashes (//), semicolons, or unexpected trailing slash patterns in server access logs
  • Successful access to protected endpoints from unauthenticated sessions or unexpected sources
  • Authentication middleware logs showing fewer requests than expected for protected routes
  • Discrepancies between middleware access counts and handler invocation counts for secured paths

Detection Strategies

  • Implement logging at both the middleware layer and handler layer to detect path normalization bypass attempts
  • Monitor for HTTP requests with non-standard path patterns such as duplicate slashes, semicolon delimiters, or unusual URL encoding
  • Compare authentication middleware execution counts against protected handler invocations to identify bypass attempts
  • Deploy Web Application Firewall (WAF) rules to detect and block requests with path manipulation patterns

Monitoring Recommendations

  • Enable verbose logging for both @fastify/middie and Fastify router to capture path processing details
  • Set up alerts for requests containing path normalization characters targeting protected endpoints
  • Implement rate limiting and anomaly detection for requests with unusual path patterns
  • Review access logs regularly for successful requests to protected resources that lack corresponding authentication events

How to Mitigate CVE-2026-2880

Immediate Actions Required

  • Upgrade @fastify/middie to version 9.2.0 or later immediately
  • Audit all path-scoped middleware configurations in your Fastify applications
  • Review router normalization settings (ignoreDuplicateSlashes, useSemicolonDelimiter, trailing-slash options) and assess their necessity
  • Implement additional authorization checks within route handlers as defense-in-depth

Patch Information

The vulnerability is addressed in @fastify/middie version 9.2.0. Organizations should upgrade to this version or later to resolve the authentication bypass vulnerability. For detailed patch information and upgrade instructions, refer to the GitHub Security Advisory.

Workarounds

  • Disable router normalization options (ignoreDuplicateSlashes, useSemicolonDelimiter) if they are not strictly required for application functionality
  • Implement authentication and authorization checks directly within route handlers rather than relying solely on path-scoped middleware
  • Add a global middleware that normalizes request paths before they reach path-scoped middleware
  • Use route-level hooks (preHandler) for authentication instead of path-scoped middleware with app.use()
bash
# Update @fastify/middie to patched version
npm update @fastify/middie@^9.2.0

# Or install specifically
npm install @fastify/middie@9.2.0

# 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 Score8.2

  • EPSS Probability0.17%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/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-20
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-3635: Fastify Authentication Bypass Vulnerability

  • CVE-2026-3419: Fastify Auth Bypass Vulnerability

  • CVE-2026-25223: Fastify Auth Bypass Vulnerability

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