{"id":"CVE-2026-7768","aliases":["CVE-2026-7768","GHSA-qxhc-wx3p-2wmg"],"related":[],"kind":"vulnerability","state":"published","title":"@fastify/accepts-serializer vulnerable to Denial of Service via Unbounded Accept Header Cache Growth","summary":"@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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n`@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. Under sustained load, this can exhaust the Node.js heap and crash the process.\n\n### Patches\n\nUpdate to `@fastify/accepts-serializer >= 6.0.4`. The cache is now bounded by an LRU with a default size of 100 entries, configurable via the new `cacheSize` plugin option.\n\n### Workarounds\n\nNone. Upgrade is required.","format":"markdown","source":"ghsa"},{"lang":"es","text":"@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.","source":"nvd"}],"published":"2026-05-04T19:14:36.828Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"6.0.4","status":"affected"},{"type":"semver","version":"6.0.4","status":"unaffected"}],"vendor":"@fastify/accepts-serializer","product":"@fastify/accepts-serializer","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.0.4"}],"ecosystem":"npm","package":"@fastify/accepts-serializer","purl":"pkg:npm/%40fastify/accepts-serializer","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.0.4"}],"vendor":"fastify","product":"fastify/accepts-serializer","cpe":"cpe:2.3:a:fastify:fastify\\/accepts-serializer:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://cna.openjsf.org/security-advisories.html","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/fastify/fastify-accepts-serializer/security/advisories/GHSA-qxhc-wx3p-2wmg","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7768","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fastify-accepts-serializer","tags":["package"],"sources":["ghsa"]}],"credits":["Yuki Matsuhashi","Ulises Gascón","Manuel Spigolon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-04T19:50:08.458Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-7768","url":"https://www.cve.org/CVERecord?id=CVE-2026-7768","licence":"CVE Terms of Use","modified":"2026-05-04T19:50:16.465Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qxhc-wx3p-2wmg","url":"https://github.com/advisories/GHSA-qxhc-wx3p-2wmg","licence":"CC-BY-4.0","modified":"2026-05-08T17:41:26.391Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-7768","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7768","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:20.561Z","epss":{"score":0.00289,"percentile":0.23134,"date":"2026-12-01T12:00:22.000Z"}}