CVE-2026-7768
@fastify/accepts-serializer vulnerable to Denial of Service via Unbounded Accept Header Cache Growth
Description
@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.
INFO
Published Date :
May 4, 2026, 8:16 p.m.
Last Modified :
Nov. 11, 2026, 11:10 p.m.
Remotely Exploit :
No
Source :
ce714d77-add3-4f53-aff5-83d477b104bb
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | ce714d77-add3-4f53-aff5-83d477b104bb | ||||
| CVSS 3.1 | HIGH | MITRE-CVE |
Solution
- Update @fastify/accepts-serializer to version 6.0.4 or later.
- Configure the cache size using the cacheSize option if needed.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-7768.
| URL | Resource |
|---|---|
| https://cna.openjsf.org/security-advisories.html | Vendor Advisory |
| https://github.com/fastify/fastify-accepts-serializer/security/advisories/GHSA-qxhc-wx3p-2wmg | Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-7768 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-7768
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-7768 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-7768 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Nov. 11, 2026
Action Type Old Value New Value Added Translation Title: @fastify/accepts-serializer, Description: @fastify/accepts-serializer almacenaba en caché los resultados de selección de serializador indexados por el encabezado Accept de la solicitud sin un límite de tamaño o política de desalojo. Un cliente remoto no autenticado podría enviar muchas variantes distintas pero coincidentes del encabezado Accept para hacer que la caché creciera sin límites, agotando finalmente el heap de Node.js y bloqueando el proceso. Las versiones menor o igual que 6.0.3 están afectadas. Actualice a la versión 6.0.4 o posterior, que limita la caché mediante un LRU con un tamaño predeterminado de 100 entradas, configurable a través de la nueva opción de plugin cacheSize. -
CVE Modified by ce714d77-add3-4f53-aff5-83d477b104bb
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': '@fastify/accepts-serializer', 'product': '@fastify/accepts-serializer', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '6.0.4', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.0.4', 'versionType': 'semver'}], 'packageURL': 'pkg:npm/@fastify/accepts-serializer', 'defaultStatus': 'unaffected'}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-7768', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'yes'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-05-04T19:50:08.458813Z'} -
Initial Analysis by [email protected]
May. 29, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:fastify:fastify/accepts-serializer:*:*:*:*:*:node.js:*:* versions up to (excluding) 6.0.4 Added Reference Type openjs: https://cna.openjsf.org/security-advisories.html Types: Vendor Advisory Added Reference Type openjs: https://github.com/fastify/fastify-accepts-serializer/security/advisories/GHSA-qxhc-wx3p-2wmg Types: Vendor Advisory -
New CVE Received by ce714d77-add3-4f53-aff5-83d477b104bb
May. 04, 2026
Action Type Old Value New Value Added Description @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. Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-770 Added Reference https://cna.openjsf.org/security-advisories.html Added Reference https://github.com/fastify/fastify-accepts-serializer/security/advisories/GHSA-qxhc-wx3p-2wmg