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
    • 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-2025-69211

CVE-2025-69211: Nestjs Nest Auth Bypass Vulnerability

CVE-2025-69211 is an authentication bypass flaw in Nestjs Nest framework using Fastify that allows attackers to circumvent middleware security checks and access protected routes. This article covers technical details, affected versions, and mitigation strategies.

Updated: May 11, 2026

CVE-2025-69211 Overview

CVE-2025-69211 is a middleware bypass vulnerability in NestJS, a framework for building scalable Node.js server-side applications. The flaw affects versions prior to 11.1.11 of @nestjs/platform-fastify and stems from inconsistent URL encoding handling between the Fastify adapter and NestJS middleware route matching. Applications relying on NestMiddleware through MiddlewareConsumer or app.use() for authentication, authorization, or input validation can be bypassed by attackers using URL-encoded path segments. The issue is patched in @nestjs/platform-fastify@11.1.11.

Critical Impact

Unauthenticated attackers can reach protected routes, lower-privileged users can access administrative endpoints, and middleware that performs sanitization or validation can be skipped entirely.

Affected Products

  • NestJS @nestjs/platform-fastify versions prior to 11.1.11
  • NestJS applications using MiddlewareConsumer with string paths or controller-based route binding
  • NestJS applications applying middleware through app.use() to specific routes

Discovery Timeline

  • 2025-12-29 - CVE-2025-69211 published to NVD
  • 2026-02-20 - Last updated in NVD database

Technical Details for CVE-2025-69211

Vulnerability Analysis

NestJS supports two underlying HTTP adapters: Express and Fastify. When developers select @nestjs/platform-fastify, the route resolution path differs from Express. The framework's middleware binding layer uses one representation of the URL when matching middleware routes, while the Fastify adapter resolves the request against a different decoded form when dispatching to controllers.

This inconsistency lets an attacker craft a request whose path matches a controller handler but not the middleware route pattern. The middleware is silently skipped, and the request reaches the handler with no authentication, authorization, or sanitization checks applied. Applications that use .forRoutes('admin') or similar string-based bindings are exposed because the comparison is performed on the unnormalized URL.

The weakness maps to [CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition], reflecting that the path is evaluated once for routing and again for dispatch, with no canonicalization step in between.

Root Cause

The root cause is divergent URL decoding between Fastify's request router and NestJS's middleware route matcher. The middleware consumer compares raw path strings, while Fastify decodes percent-encoded sequences before invoking the controller. A path containing encoded characters such as %61dmin will not match the middleware pattern admin, yet Fastify normalizes the segment and routes the request to the admin controller.

Attack Vector

Exploitation requires only network access to a vulnerable endpoint. An attacker sends an HTTP request to a protected route using URL-encoded characters in the path segment guarded by middleware. The middleware layer fails to match, the request bypasses the security check, and Fastify forwards the decoded path to the protected controller. No authentication, user interaction, or special privileges are required to trigger the bypass.

No public proof-of-concept code is available. Technical details are described in the GitHub Security Advisory GHSA-8wpr-639p-ccrj.

Detection Methods for CVE-2025-69211

Indicators of Compromise

  • HTTP access logs containing percent-encoded ASCII letters in path segments that correspond to protected routes, for example %61dmin, %41DMIN, or mixed-case encodings of administrative endpoints.
  • Successful 2xx responses to administrative endpoints from clients that never authenticated through the expected middleware chain.
  • Absence of expected middleware log entries (authentication, audit, rate-limit) for requests that reached protected controllers.

Detection Strategies

  • Audit application logs for requests where the controller executed but the upstream middleware emitted no entry for the same request ID.
  • Add a global interceptor or Fastify onRequest hook that logs the raw and decoded path side by side; alert when they diverge for routes bound to middleware.
  • Run authenticated and unauthenticated scans against protected routes using URL-encoded path variants and compare response codes.

Monitoring Recommendations

  • Forward NestJS and Fastify access logs to a centralized log platform and build queries that detect percent-encoded letters in path segments matching sensitive routes.
  • Track the ratio of requests reaching admin controllers to authentication events; investigate spikes in the controller path that are not matched by auth activity.
  • Monitor dependency manifests in CI for @nestjs/platform-fastify versions below 11.1.11.

How to Mitigate CVE-2025-69211

Immediate Actions Required

  • Upgrade @nestjs/platform-fastify to version 11.1.11 or later across all NestJS applications using the Fastify adapter.
  • Inventory every MiddlewareConsumer.forRoutes() call and every app.use() binding that targets a string path or controller; treat these as exposure points until the patch is deployed.
  • Re-test authentication and authorization flows against URL-encoded variants of every protected route after upgrading.

Patch Information

The fix is delivered in @nestjs/platform-fastify@11.1.11. The upstream change is published in the NestJS patch commit c4cedda1 and described in the GitHub Security Advisory GHSA-8wpr-639p-ccrj. The patch normalizes path comparison so the middleware matcher and Fastify router agree on the decoded route.

Workarounds

  • Move security checks from NestMiddleware into NestJS Guards or global interceptors, which evaluate the resolved route metadata rather than raw path strings.
  • Place a reverse proxy or web application firewall in front of the application to reject requests whose path segments contain percent-encoded alphanumeric characters for known protected routes.
  • Bind middleware using wildcard patterns such as * combined with in-handler authorization rather than route-string matching, until the package upgrade is complete.
bash
# Configuration example
npm install @nestjs/platform-fastify@^11.1.11
npm ls @nestjs/platform-fastify

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechNestjs

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/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-367
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-8wpr-639p-ccrj
  • Related CVEs
  • CVE-2026-33011: NestJS Nest Auth Bypass Vulnerability

  • CVE-2026-2293: NestJS Fastify Auth Bypass Vulnerability

  • CVE-2025-54782: Nestjs Devtools-integration RCE 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