# CVE-2026-7768: @fastify/accepts-serializer vulnerable to Denial of Service via Unbounded Accept Header Cache Growth

- Severity: High 7.5 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-05-04T19:14:36.828Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-qxhc-wx3p-2wmg
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: openjs

## 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.

(As written by CVE List.)

## Affected

- @fastify/accepts-serializer @fastify/accepts-serializer: before 6.0.4 (not affected: 6.0.4)
- @fastify/accepts-serializer (npm): before 6.0.4
- fastify fastify/accepts-serializer: before 6.0.4

## Every score

- openjs: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://cna.openjsf.org/security-advisories.html> (vendor-advisory, web)
- <https://github.com/fastify/fastify-accepts-serializer/security/advisories/GHSA-qxhc-wx3p-2wmg> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-7768> (advisory)
- <https://github.com/fastify/fastify-accepts-serializer> (package)

## Sources

- CVE List: [CVE-2026-7768](https://www.cve.org/CVERecord?id=CVE-2026-7768), CVE Terms of Use, modified 2026-05-04
- GitHub Advisory Database: [GHSA-qxhc-wx3p-2wmg](https://github.com/advisories/GHSA-qxhc-wx3p-2wmg), CC-BY-4.0, modified 2026-05-08
- NVD: [CVE-2026-7768](https://nvd.nist.gov/vuln/detail/CVE-2026-7768), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-7768 · Whole record: https://cve.day/CVE-2026-7768.json · Rebuilt by cve.day 2026-11-25T22:59:20.561Z
