CVE-2026-30241
published low CVSS 4.0 · 2.7Mercurius: queryDepth limit bypassed for WebSocket subscriptions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mercurius-js | — | mercurius< 16.8.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.7 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS: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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mercurius-js | mercurius | < 16.8.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-863 CWE-863: Incorrect Authorization
References
2Provider assertions
2GitHub_M · cna
Mercurius: queryDepth limit bypassed for WebSocket subscriptions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a15fbb4ff2bdc1911b5aeb751372bd749926be69d241c1e3bc18dc205e327467
- Ingested
- 23 Sep 2026, 09:09:07 UTC
- Source record
- Official CVE record