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

CVE-2026-6321: fast-uri Path Traversal Vulnerability

CVE-2026-6321 is a path traversal flaw in fast-uri that allows attackers to bypass path-based security policies through encoded path separators. This article covers technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-6321 Overview

CVE-2026-6321 is a path traversal vulnerability [CWE-22] in the fast-uri JavaScript library maintained under the Fastify project. The flaw resides in the normalize() and equal() functions, which decode percent-encoded path separators and dot segments before applying dot-segment removal. Encoded sequences such as %2F and %2E%2E are treated as real slashes and parent-directory references. Distinct URIs collapse onto the same normalized path, breaking path-based security policy. Versions <= 3.1.0 are affected, and version 3.1.1 contains the fix.

Critical Impact

Attackers can bypass URL allowlists and prefix-based access controls by crafting URIs that appear confined under a permitted path but normalize to a different location.

Affected Products

  • fast-uri versions <= 3.1.0
  • Fastify applications and plugins that depend on fast-uri for URI parsing
  • Node.js services using fast-uri.normalize() or fast-uri.equal() for policy enforcement

Discovery Timeline

  • 2026-05-04 - CVE-2026-6321 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-6321

Vulnerability Analysis

The fast-uri library provides URI parsing and normalization for the Fastify ecosystem. The normalize() and equal() functions perform percent-decoding before executing RFC 3986 dot-segment removal. This ordering inverts the canonicalization sequence required by the standard. Encoded path separators surface as literal / characters, and encoded .. sequences become traversal tokens after the safety pass has already executed.

Applications relying on these functions to enforce path-based policy compare a URI against an allowed prefix. A request such as /allowed/%2E%2E/secret passes a naive prefix check because the literal string begins with /allowed/. After normalize() decodes the encoded segments, the path resolves to /secret, outside the intended boundary. The same flaw lets two semantically different URIs return true from equal(), undermining cache keys and authorization checks.

Root Cause

The root cause is incorrect operation ordering inside the URI canonicalization pipeline. RFC 3986 specifies that dot-segment removal must operate on already-decoded path components, but the implementation performs decoding and removal in a sequence that allows encoded traversal data to slip past the segment filter.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker submits a crafted URL containing percent-encoded path separators (%2F) or encoded dot segments (%2E%2E or .%2E) to any endpoint that uses fast-uri.normalize() or fast-uri.equal() for routing, allowlisting, or origin comparison. The library returns a normalized path that differs from the literal prefix the application validated, producing a policy bypass.

No verified public exploit code is published. See the GitHub Security Advisory GHSA-q3j6-qgpj-74h6 for the maintainer's technical write-up.

Detection Methods for CVE-2026-6321

Indicators of Compromise

  • HTTP request paths containing %2F, %2f, %2E%2E, %2e%2e, or mixed-case variants targeting endpoints that enforce prefix-based authorization
  • Access log entries where the requested path includes encoded traversal tokens followed by sensitive route names
  • Anomalous successful responses for resources that should fall outside an authenticated user's allowed path scope

Detection Strategies

  • Inventory dependencies with npm ls fast-uri across Node.js services and flag any version <= 3.1.0
  • Add Web Application Firewall (WAF) rules that decode request paths and compare them against the raw path, alerting when canonicalization changes the prefix
  • Review code for direct calls to fastUri.normalize() and fastUri.equal() used in authorization, routing, or cache-key logic

Monitoring Recommendations

  • Log both the raw and normalized request paths at the application edge to detect divergence
  • Alert on 2xx responses to paths containing percent-encoded separators or dot segments
  • Track outbound requests from server-side fetchers that resolve URLs through fast-uri to catch Server-Side Request Forgery (SSRF) chained from this flaw

How to Mitigate CVE-2026-6321

Immediate Actions Required

  • Upgrade fast-uri to version 3.1.1 or later in all package.json and lockfile entries
  • Rebuild and redeploy any Node.js service or Fastify plugin that bundles a vulnerable copy of the library
  • Audit transitive dependencies, since fast-uri is pulled in by fastify, ajv-formats, and other common packages

Patch Information

The Fastify maintainers released fast-uri3.1.1 to correct the canonicalization order. The fix performs dot-segment removal on the decoded path components in the sequence required by RFC 3986. Refer to the GitHub Security Advisory GHSA-q3j6-qgpj-74h6 and the OpenJS Foundation Security Advisories for advisory text and patch metadata.

Workarounds

  • Reject HTTP requests whose raw path contains %2F, %2f, or encoded dot segments before they reach application logic
  • Decode and re-validate the canonical path against the allowlist after fast-uri returns its normalized value, instead of trusting the prefix check alone
  • Replace fast-uri.equal() in security decisions with a comparator that operates on fully decoded, canonicalized paths
bash
# Upgrade fast-uri across the project
npm install fast-uri@^3.1.1
npm audit --production
# Verify no vulnerable versions remain in the dependency tree
npm ls fast-uri

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechFast Uri

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.03%

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

  • GitHub Security Advisory GHSA-q3j6-qgpj-74h6
  • Related CVEs
  • CVE-2026-6322: fast-uri SSRF 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