Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend HTTP requests with unique Accept headers
-
DeliveryPlugin caches each variant without eviction
-
ExploitHeap memory grows unbounded
-
ExecutionNode.js out-of-memory exception
-
ImpactProcess 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
1DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
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
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-27131
GHSA-qxhc-wx3p-2wmg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB