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

Published May 4, 2026
·
Updated

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

Other sources

Impact

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

Patches

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

Workarounds

None. Upgrade is required.

GitHub

Affected Software

3 affected componentsFixes available
npm/@fastify/accepts-serializer<=6.0.3
npm/@fastify/accepts-serializer<=6.0.3
6.0.4
fastify Fastify\/accepts-serializer Node.js<6.0.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@fastify/accepts-serializer to a version that resolves this vulnerability.

    Fixed in 6.0.4
  2. Upgrade

    Upgrade @fastify/accepts-serializer to a version that resolves this vulnerability.

    Fixed in 6.0.4

Event History

May 4, 2026
CVE Published
via MITRE·07:14 PM
Data Sourced
via MITRE·07:14 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
Affected Software
May 8, 2026
Advisory Published
via GitHub·05:13 PM
Data Sourced
via GitHub·05:13 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-7768?

CVE-2026-7768 is classified as a Denial of Service vulnerability.

2

How do I fix CVE-2026-7768?

To fix CVE-2026-7768, update @fastify/accepts-serializer to version 6.0.4 or later.

3

What does CVE-2026-7768 affect?

CVE-2026-7768 affects the @fastify/accepts-serializer package versions up to and including 6.0.3.

4

What type of attack is possible with CVE-2026-7768?

CVE-2026-7768 allows for a Denial of Service attack due to unbounded Accept header cache growth.

5

Is authentication required to exploit CVE-2026-7768?

No, a remote unauthenticated client can exploit CVE-2026-7768.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203