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

CVE-2026-25223: Fastify Auth Bypass Vulnerability

CVE-2026-25223 is an authentication bypass flaw in Fastify for Node.js that allows attackers to circumvent request body validation by manipulating Content-Type headers. This article covers technical details, affected versions, and patches.

Published: February 6, 2026

CVE-2026-25223 Overview

CVE-2026-25223 is a validation bypass vulnerability in Fastify, a fast and low overhead web framework for Node.js. Prior to version 5.7.2, a critical flaw exists where request body validation schemas specified by Content-Type can be completely circumvented. By appending a tab character (\t) followed by arbitrary content to the Content-Type header, attackers can bypass body validation while the server still processes the body as the original content type.

This vulnerability allows attackers to submit malicious or malformed data to Fastify applications that rely on schema validation for security enforcement, potentially leading to data integrity issues, injection attacks, or other application-specific security impacts.

Critical Impact

Attackers can completely bypass request body validation in Fastify applications, allowing submission of unvalidated and potentially malicious payloads that the application processes as legitimate requests.

Affected Products

  • Fastify versions prior to 5.7.2
  • Node.js applications using Fastify with Content-Type based body validation
  • APIs relying on Fastify's schema validation for input sanitization

Discovery Timeline

  • 2026-02-03 - CVE CVE-2026-25223 published to NVD
  • 2026-02-04 - Last updated in NVD database

Technical Details for CVE-2026-25223

Vulnerability Analysis

This vulnerability falls under CWE-436 (Interpretation Conflict), where two different components interpret the same input differently. The root issue lies in how Fastify's content-type parser and validation logic handle Content-Type headers with trailing characters.

When a request is received, Fastify's content-type parser extracts the media type to determine how to parse the request body. However, the validation schema lookup uses a different method to match Content-Type headers to validation schemas. By appending a tab character followed by arbitrary text to the Content-Type header (e.g., application/json\tsomething), an attacker can cause the validation lookup to fail while the parser still correctly identifies and processes the content as JSON.

This interpretation conflict allows attackers to send requests that bypass all body validation while still having their payload processed normally by the application.

Root Cause

The vulnerability stems from inconsistent handling of Content-Type headers between two code paths in Fastify. The content-type parser (in lib/content-type-parser.js) correctly extracts the media type by handling whitespace and parameters according to RFC 9110 specifications. However, the validation schema matching logic (in lib/validation.js) performed a direct string comparison or used different parsing logic that did not properly handle tab characters and trailing content.

This mismatch created a scenario where the validation module could not find a matching schema for the manipulated Content-Type, effectively skipping validation, while the parser module still correctly identified the content type for body parsing.

Attack Vector

The attack is network-based and can be executed remotely without authentication. An attacker simply needs to:

  1. Identify a Fastify endpoint with body validation configured
  2. Craft a request with a manipulated Content-Type header containing a tab character
  3. Submit any payload without it being validated against the defined schema

The security patch introduces a dedicated lib/content-type.js module that provides consistent Content-Type parsing according to RFC 9110:

javascript
+'use strict'
+
+/**
+ * keyValuePairsReg is used to split the parameters list into associated
+ * key value pairings.
+ *
+ * @see https://httpwg.org/specs/rfc9110.html#parameter
+ * @type {RegExp}
+ */
+const keyValuePairsReg = /([\w!#$%&'*+.^`|~-]+)=([^;]*)/gm
+
+/**
+ * typeNameReg is used to validate that the first part of the media-type
+ * does not use disallowed characters.
+ *
+ * @see https://httpwg.org/specs/rfc9110.html#rule.token.separators
+ * @type {RegExp}
+ */
+const typeNameReg = /^[\w!#$%&'*+.^`|~-]+$/
+
+/**
+ * subtypeNameReg is used to validate that the second part of the media-type
+ * does not use disallowed characters.
+ *
+ * @see https://httpwg.org/specs/rfc9110.html#rule.token.separators
+ * @type {RegExp}
+ */
+const subtypeNameReg = /^[\w!#$%&'*+.^`|~-]+\s*/

Source: Fastify Commit Overview

Detection Methods for CVE-2026-25223

Indicators of Compromise

  • HTTP requests containing tab characters (\t or %09) within Content-Type headers
  • Unusual Content-Type header values with trailing garbage or unexpected parameters
  • Application logs showing validation errors followed by successful processing of the same request
  • Requests with Content-Type headers like application/json\t* or similar patterns

Detection Strategies

  • Configure WAF rules to detect and block requests with tab characters or unexpected whitespace in Content-Type headers
  • Implement application-level logging that captures raw Content-Type header values for forensic analysis
  • Deploy runtime application security monitoring to detect validation bypass attempts
  • Review access logs for patterns of requests with malformed Content-Type headers targeting validated endpoints

Monitoring Recommendations

  • Enable detailed HTTP header logging for all Fastify application endpoints
  • Set up alerts for requests where Content-Type headers contain control characters (ASCII 0x00-0x1F)
  • Monitor for increased error rates in validation modules that might indicate exploitation attempts
  • Implement anomaly detection for unusual Content-Type header patterns in your application traffic

How to Mitigate CVE-2026-25223

Immediate Actions Required

  • Upgrade Fastify to version 5.7.2 or later immediately
  • Audit application logs for any evidence of exploitation attempts using malformed Content-Type headers
  • Review any security-critical functionality that relies on Fastify's body validation to assess potential impact
  • Consider implementing additional input validation at the application layer as defense-in-depth

Patch Information

The vulnerability has been patched in Fastify version 5.7.2. The fix introduces a new dedicated Content-Type parsing module (lib/content-type.js) that ensures consistent parsing according to RFC 9110 specifications across both the content-type parser and validation components.

Upgrade using npm:

bash
npm update fastify@5.7.2

For more details, refer to the GitHub Security Advisory GHSA-jx2c-rxcm-jvmq and the HackerOne Vulnerability Report #3464114.

Workarounds

  • Implement custom middleware to sanitize and normalize Content-Type headers before they reach Fastify's routing and validation logic
  • Add explicit Content-Type header validation in a pre-handler hook that rejects requests with tab characters or unexpected content
  • Deploy a reverse proxy or WAF rule to strip or reject malformed Content-Type headers
  • For critical endpoints, implement secondary validation using an independent validation library
bash
# Example nginx configuration to block malformed Content-Type headers
# Add to your nginx server block configuration
if ($content_type ~* "[\t]") {
    return 400;
}

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.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-436
  • Technical References
  • Fastify Validation Documentation

  • GitHub Content-Type Parser Code

  • GitHub Validation Code Segment

  • Fastify Commit Overview

  • GitHub Security Advisory GHSA-jx2c-rxcm-jvmq

  • HackerOne Vulnerability Report #3464114
  • Related CVEs
  • CVE-2026-3635: Fastify Authentication Bypass Vulnerability

  • CVE-2026-3419: Fastify Auth Bypass Vulnerability

  • CVE-2026-2880: Fastify Middie 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