Auth bypass in Mercurius-Js Mercurius
CVE-2026-30241
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.
Vulnerability class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H.
EPSS exploit prediction
EPSS: 0.004 (35.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 36th percentile — 35.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: +0.001
Affected products
- Mercurius-Js Mercurius — versions < 16.8.0
- Mercurius Project
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-30241?
- CVE-2026-30241 is a high-severity vulnerability in Mercurius-Js Mercurius, classified under Incorrect Authorization. CVSS score: 8.2/10. Published 2026-03-06.
- How severe is CVE-2026-30241?
- High severity. CVSS v3 base score is 8.2 out of 10.