High severity · published Mar 6, 2026
CVE-2026-30241
Mercurius: queryDepth limit bypassed for WebSocket subscriptions
8.2
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
Low
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 32% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
ME
mercurius · mercurius-js
< 16.8.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-30241
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-30241
Patch
https://github.com/mercurius-js/mercurius/commit/5b56f60f4b0d60780b0ff499a479bd830bdd6986
Vendor Advisory
https://github.com/mercurius-js/mercurius/security/advisories/GHSA-m4h2-mjfm-mp55
More from mercurius
5.4
CVE-2025-64166
Mercurius: Incorrect Content-Type parsing can lead to CSRF attack
