Skip to main content

@fastify/accepts-serializer EUVDEUVD-2026-27131

| CVE-2026-7768 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-05-04 openjs GHSA-qxhc-wx3p-2wmg
7.5
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP requests with unique Accept headers
  2. Delivery
    Plugin caches each variant without eviction
  3. Exploit
    Heap memory grows unbounded
  4. Execution
    Node.js out-of-memory exception
  5. Impact
    Process crash and service unavailability

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions - remote unauthenticated exploitation against default configurations of @fastify/accepts-serializer versions ≤6.0.3. Attack succeeds whenever the plugin is loaded in a Fastify application with network-accessible routes, which is the standard deployment pattern for API services. Limiting factors: (1) attacker needs sustained network connectivity to send sufficient requests for memory exhaustion (typically thousands to tens of thousands depending on heap size); (2) downstream monitoring or auto-restart mechanisms (Kubernetes liveness probes, PM2, systemd) may detect and restart crashed processes, requiring repeated attacks for sustained denial of service; (3) reverse proxies with aggressive rate limiting per source IP may slow attack execution.

Impact

The CVSS 7.5 (High) score reflects network-based (AV:N), low-complexity (AC:L), unauthenticated (PR:N) attacks causing complete availability loss (A:H), which accurately models this vulnerability. EPSS and KEV data not provided in input, suggesting no widespread exploitation detected yet. However, real-world risk is ELEVATED because: (1) the attack requires only HTTP client access with no authentication - standard for web APIs; (2) attack complexity is minimal, needing just a script to send varied Accept headers; (3) Fastify is widely deployed in Node.js production environments where availability is critical; (4) the vulnerability affects default configurations with no special feature enablement required. Mitigating factor: impact is limited to availability with no data confidentiality or integrity compromise. Organizations running internet-facing Fastify services with this plugin should prioritize patching, as the attack surface is fully exposed and exploitation is trivial despite absence of public POC.

Exploit ScenarioDerived

An attacker identifies a public Fastify API endpoint using @fastify/accepts-serializer through framework fingerprinting or documentation review. They script a Python requests loop generating thousands of unique Accept headers by varying quality parameters, media type order, and whitespace (e.g., Accept: application/json;q=0.901, Accept: text/html;q=0.902, etc.). Each distinct header creates a new cache entry consuming heap memory. After 10,000-50,000 requests (depending on available heap), the Node.js process exhausts memory and crashes with a fatal error, taking the API offline until manual restart.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 04, 2026

Unbounded cache growth in @fastify/accepts-serializer versions ≤6.0.3 allows remote unauthenticated attackers to exhaust Node.js heap memory by sending numerous distinct Accept header variants, crashing the application. The plugin caches serializer selections keyed by Accept header without size limits, enabling trivial memory exhaustion attacks against any exposed Fastify endpoint. Fix available in version 6.0.4, which implements an LRU cache with 100-entry default limit. No public exploit code identified at time of analysis, but attack is straightforward to execute with basic HTTP tools.

RemediationAI

Upgrade @fastify/accepts-serializer to version 6.0.4 or later, which implements an LRU (Least Recently Used) cache with default 100-entry limit as documented in GitHub advisory GHSA-qxhc-wx3p-2wmg. Update package.json dependency and run npm install or yarn install, then restart Node.js processes. If immediate upgrade is blocked, implement compensating controls: (1) deploy reverse proxy (nginx, Cloudflare) to normalize/limit Accept header variations before reaching Node.js backend - configure max header size of 4KB and rate-limit distinct header patterns per IP (trade-off: complex regex rules, potential legitimate traffic blocking); (2) enable Node.js --max-old-space-size flag with monitoring to detect heap exhaustion before crash and trigger graceful restart (trade-off: service interruption still occurs, just more controlled); (3) restrict application exposure to authenticated clients only via API gateway (trade-off: eliminates public API use cases). Primary fix of upgrading to 6.0.4 has no known side effects and maintains backward compatibility while adding configurable cacheSize option for custom tuning.

Affected VersionsENISA

@fastify/accepts-serializer 0 <6.0.4

Affected Packages

npm @fastify/accepts-serializer fix: 6.0.4
euvd fastify_accepts_serializer fix: 6.0.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The @fastify/accepts-serializer plugin for Fastify framework optimizes content negotiation by caching serializer-selection decisions based on HTTP Accept headers. The vulnerability stems from CWE-770 (Allocation of Resources Without Limits or Throttling) - the cache implementation prior to 6.0.4 stored mappings in an unbounded in-memory structure without eviction policy. Since Accept headers can contain arbitrary media type lists with quality parameters (e.g., application/json;q=0.9, text/html;q=0.8), attackers can generate functionally equivalent but textually distinct headers that each create a new cache entry. In Node.js environments, uncontrolled heap growth eventually triggers out-of-memory exceptions, terminating the process. The CPE identifier cpe:2.3:a:@fastify/accepts-serializer:@fastify/accepts-serializer confirms the affected component is the npm package itself, impacting any Fastify application using this plugin for content negotiation.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (openjs) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (openjs) · only source for this CVE.

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

1
Patch available
May 04, 2026 - 21:02 EUVD

DescriptionCVE.org

@fastify/accepts-serializer cached serializer-selection results keyed by the request Accept header without a size limit or eviction policy. A remote unauthenticated client could send many distinct but matching Accept header variants to make the cache grow unbounded, eventually exhausting the Node.js heap and crashing the process. Versions <= 6.0.3 are affected. Update to 6.0.4 or later, which bounds the cache via an LRU with a default size of 100 entries, configurable through the new cacheSize plugin option.

Executive ViewAI

Why It Matters

The @fastify/accepts-serializer plugin versions 6.0.3 and earlier are vulnerable to remote denial-of-service attacks where attackers can crash Node.js applications by exhausting heap memory through crafted HTTP Accept headers. Any organization running affected Fastify applications on the public internet faces immediate availability risk, as the attack requires no authentication and can be executed with standard HTTP tools.

Business Impact: High
Compensating Controls

Vendor-released patch: @fastify/accepts-serializer 6.0.4. If immediate upgrade is not possible, implement network-level rate limiting on distinct Accept header values per source IP, configure Node.js heap size limits via --max-old-space-size flag to force graceful restarts before cascade failures, and deploy request filtering to reject Accept headers exceeding reasonable length (e.g., >512 bytes).

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy