{"id":"GHSA-qxhc-wx3p-2wmg","summary":"@fastify/accepts-serializer Vulnerable to Denial of Service via Unbounded Accept Header Cache Growth","details":"### 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 \u003e= 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.","aliases":["CVE-2026-7768"],"modified":"2026-05-08T17:41:26.391342Z","published":"2026-05-08T17:13:38Z","database_specific":{"github_reviewed_at":"2026-05-08T17:13:38Z","nvd_published_at":"2026-05-04T20:16:21Z","cwe_ids":["CWE-770"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/fastify/fastify-accepts-serializer/security/advisories/GHSA-qxhc-wx3p-2wmg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7768"},{"type":"WEB","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"PACKAGE","url":"https://github.com/fastify/fastify-accepts-serializer"}],"affected":[{"package":{"name":"@fastify/accepts-serializer","ecosystem":"npm","purl":"pkg:npm/%40fastify/accepts-serializer"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"6.0.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-qxhc-wx3p-2wmg/GHSA-qxhc-wx3p-2wmg.json","last_known_affected_version_range":"\u003c= 6.0.3"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}