Home

Description

Mercurius is a GraphQL adapter for Fastify. Prior to version 16.8.0, Mercurius fails to enforce the configured queryDepth limit on GraphQL subscription queries received over WebSocket connections. The depth check is correctly applied to HTTP queries and mutations, but subscription queries are parsed and executed without invoking the depth validation. This allows a remote client to submit arbitrarily deeply nested subscription queries over WebSocket, bypassing the intended depth restriction. On schemas with recursive types, this can lead to denial of service through exponential data resolution on each subscription event. This issue has been patched in version 16.8.0.

PUBLISHED Reserved 2026-03-04 | Published 2026-03-06 | Updated 2026-03-06 | Assigner GitHub_M




LOW: 2.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U

Problem types

CWE-863: Incorrect Authorization

Product status

< 16.8.0
affected

References

github.com/...curius/security/advisories/GHSA-m4h2-mjfm-mp55

github.com/...ommit/5b56f60f4b0d60780b0ff499a479bd830bdd6986

cve.org (CVE-2026-30241)

nvd.nist.gov (CVE-2026-30241)

Download JSON