{"id":"CVE-2026-7768","state":"PUBLISHED","title":"@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.","publishedAt":"2026-05-04T19:14:36.828Z","updatedAt":"2026-05-04T19:50:16.465Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"openjs"},"assigner":"openjs","products":["@fastify/accepts-serializer @fastify/accepts-serializer"],"affected":[{"vendor":"@fastify/accepts-serializer","product":"@fastify/accepts-serializer","packageURL":"pkg:npm/@fastify/accepts-serializer","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"6.0.4","versionType":"semver"},{"version":"6.0.4","status":"unaffected","versionType":"semver"}]}],"references":["https://cna.openjsf.org/security-advisories.html","https://github.com/fastify/fastify-accepts-serializer/security/advisories/GHSA-qxhc-wx3p-2wmg"],"weaknesses":["CWE-770"],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/7xxx/CVE-2026-7768.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-7768","state":"PUBLISHED","datePublished":"2026-05-04T19:14:36.828Z","dateUpdated":"2026-05-04T19:50:16.465Z","assignerShortName":"openjs","assignerOrgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateReserved":"2026-05-04T11:50:02.918Z"},"containers":{"cna":{"title":"@fastify/accepts-serializer vulnerable to Denial of Service via Unbounded Accept Header Cache Growth","descriptions":[{"lang":"en","value":"@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."}],"affected":[{"vendor":"@fastify/accepts-serializer","product":"@fastify/accepts-serializer","packageURL":"pkg:npm/@fastify/accepts-serializer","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"6.0.4","versionType":"semver"},{"version":"6.0.4","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://cna.openjsf.org/security-advisories.html"},{"url":"https://github.com/fastify/fastify-accepts-serializer/security/advisories/GHSA-qxhc-wx3p-2wmg"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-770","lang":"en","description":"CWE-770: Allocation of Resources Without Limits or Throttling","type":"CWE"}]}],"providerMetadata":{"shortName":"openjs","orgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateUpdated":"2026-05-04T19:14:36.828Z"},"credits":[{"lang":"en","type":"finder","value":"Yuki Matsuhashi"},{"lang":"en","type":"remediation reviewer","value":"Ulises Gascón"},{"lang":"en","type":"remediation developer","value":"Manuel Spigolon"}],"x_generator":{"engine":"cve-kit 1.0.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-04T19:50:08.458813Z","id":"CVE-2026-7768","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-04T19:50:16.465Z"}}]}}}