Mercurius: queryDepth limit bypassed for WebSocket subscriptions
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| mercurius-js | mercurius | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Mercurius-js | Mercurius |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-m4h2-mjfm-mp55 | Mercurius's queryDepth limit bypassed for WebSocket subscriptions |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.402% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Mercurius Project
Mercurius Project mercurius |
|
| CPEs | cpe:2.3:a:mercurius_project:mercurius:*:*:*:*:*:node.js:*:* | |
| Vendors & Products |
Mercurius Project
Mercurius Project mercurius |
|
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Mercurius-js
Mercurius-js mercurius |
|
| Vendors & Products |
Mercurius-js
Mercurius-js mercurius |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Mercurius: queryDepth limit bypassed for WebSocket subscriptions | |
| Weaknesses | CWE-863 | |
| References |
| |
| Metrics |
cvssV4_0
|