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

CVE-2026-7768: Fastify Accepts Serializer DoS Vulnerability

CVE-2026-7768 is a denial of service vulnerability in @fastify/accepts-serializer caused by unbounded cache growth. Attackers can exhaust memory and crash the process. This article covers technical details, affected versions, and fixes.

Published: May 7, 2026

CVE-2026-7768 Overview

CVE-2026-7768 affects the @fastify/accepts-serializer plugin for the Fastify Node.js web framework. The plugin cached serializer-selection results keyed by the request Accept header without enforcing a size limit or eviction policy. A remote unauthenticated attacker can send numerous distinct but matching Accept header variants to grow the cache without bound. This exhausts the Node.js heap and crashes the process, producing a denial-of-service condition. Versions <= 6.0.3 are affected. The maintainers released version 6.0.4, which bounds the cache via a least-recently-used (LRU) policy with a default size of 100 entries, configurable through the new cacheSize plugin option. The flaw is tracked under [CWE-770: Allocation of Resources Without Limits or Throttling].

Critical Impact

Unauthenticated remote attackers can crash Fastify processes using @fastify/accepts-serializer <= 6.0.3 by triggering unbounded heap growth through crafted Accept headers.

Affected Products

  • @fastify/accepts-serializer versions <= 6.0.3
  • Node.js applications using the Fastify framework with this plugin enabled
  • Any HTTP service exposing routes that perform Accept-based content negotiation through the plugin

Discovery Timeline

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

Technical Details for CVE-2026-7768

Vulnerability Analysis

The @fastify/accepts-serializer plugin selects a response serializer based on the client's Accept header. To avoid recomputing this selection on every request, the plugin caches the resolved serializer using the raw Accept header value as the cache key. The cache had no maximum size and no eviction policy, so each new key persisted in memory for the lifetime of the process.

The Accept header supports complex syntax including media ranges, quality values (q=), and parameters. This grammar allows a virtually unlimited number of header strings that all resolve to the same serializer. An attacker can issue requests with semantically equivalent but lexically distinct headers, causing each unique string to populate a new cache entry.

Root Cause

The root cause is missing resource throttling on a server-side cache whose key space is fully controlled by the remote client. The plugin trusted the cardinality of Accept header values to remain small in practice. No bound on cache size, total memory, or entry lifetime was enforced.

Attack Vector

The vulnerability is reachable over the network without authentication or user interaction. An attacker sends repeated HTTP requests to any route handled by the plugin, varying the Accept header on each request. Trivial variations such as adding whitespace, reordering media types, or appending unique parameters produce distinct cache keys. As entries accumulate, the Node.js process consumes increasing heap memory until V8 aborts the process with an out-of-memory error, terminating availability for all clients. Refer to the GitHub Security Advisory GHSA-qxhc-wx3p-2wmg for additional context.

Detection Methods for CVE-2026-7768

Indicators of Compromise

    • Sustained growth of Node.js resident set size (RSS) and V8 heap usage on processes loading @fastify/accepts-serializer
    • Process termination with FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
    • High volume of HTTP requests from a single source carrying many distinct Accept header values
    • Unusual entropy or cardinality in the Accept header field across short time windows in access logs

Detection Strategies

    • Inventory package.json and package-lock.json files across deployments to identify any @fastify/accepts-serializer version at or below 6.0.3.
    • Aggregate access logs and alert when the count of distinct Accept header values per source IP exceeds a baseline threshold over a five-minute window.
    • Instrument the application with Node.js metrics (process.memoryUsage(), v8.getHeapStatistics()) and alert on rapid heap growth uncorrelated with traffic volume.

Monitoring Recommendations

    • Forward Node.js process telemetry and HTTP access logs to a centralized analytics platform for correlation between header diversity and memory pressure.
    • Track process restart events and out-of-memory exit codes in container orchestration platforms such as Kubernetes.
    • Enable rate-limit metrics at the reverse proxy or API gateway and review spikes attributable to single clients.

How to Mitigate CVE-2026-7768

Immediate Actions Required

    • Upgrade @fastify/accepts-serializer to version 6.0.4 or later in all affected services.
    • Audit dependency trees with npm ls @fastify/accepts-serializer or yarn why @fastify/accepts-serializer to find transitive uses.
    • Set the new cacheSize plugin option explicitly to a value appropriate for the workload, rather than relying on defaults.
    • Apply rate limiting at the edge to constrain how many distinct requests a single client can send per minute.

Patch Information

The fix is delivered in @fastify/accepts-serializer6.0.4. The patched version replaces the unbounded object cache with an LRU cache that defaults to 100 entries. Operators can tune capacity through the cacheSize option when registering the plugin. See the OpenJS Foundation Security Advisories and the GitHub Security Advisory GHSA-qxhc-wx3p-2wmg for advisory details.

Workarounds

    • Place a reverse proxy in front of Fastify that normalizes or strips the Accept header before it reaches the application.
    • Enforce per-IP request rate limits and connection caps using @fastify/rate-limit or an upstream WAF.
    • Restart application processes on a schedule or based on heap thresholds until the upgrade is deployed.
    • Disable the @fastify/accepts-serializer plugin on routes where content negotiation is not required.
bash
# Configuration example
npm install @fastify/accepts-serializer@^6.0.4

# Register with an explicit cache bound
# fastify.register(require('@fastify/accepts-serializer'), {
#   serializers: [...],
#   default: 'application/json',
#   cacheSize: 64
# })

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechFastify

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

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

  • GitHub Security Advisory GHSA-qxhc-wx3p-2wmg
  • Related CVEs
  • CVE-2026-25224: Fastify Web Streams DoS Vulnerability

  • CVE-2026-33804: Fastify Middie Auth Bypass Vulnerability

  • CVE-2026-6410: Fastify Static Path Traversal Vulnerability

  • CVE-2026-6414: Fastify Static 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