{"id":"CVE-2026-30241","published":"2026-03-06T21:15:33Z","modified":"2026-03-09T20:54:28Z","title":"Mercurius: queryDepth limit bypassed for WebSocket subscriptions","vendor":"mercurius-js","product":"mercurius","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.7,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00402,"percentile":0.35354,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/mercurius-js/mercurius/security/advisories/GHSA-m4h2-mjfm-mp55","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mercurius-js/mercurius/commit/5b56f60f4b0d60780b0ff499a479bd830bdd6986","tags":["x_refsource_MISC"]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":7.07},{"name":"CVSS severity","points":1.89}]},"vendorSlug":"mercurius-js","affectedVersions":[{"vendor":"mercurius-js","product":"mercurius","versions":["< 16.8.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-09T20:44:23.547122Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"mercurius","vulnerableRanges":["<16.8.0"],"patched":["16.8.0"],"from":["GHSA-m4h2-mjfm-mp55"],"provenance":"source"}],"summary":{"text":"Mercurius, the GraphQL adapter for Fastify from mercurius-js, fails to apply its configured queryDepth limit to subscription queries received over WebSocket connections, although the check does run for HTTP queries and mutations. A remote, unauthenticated client with network access to the WebSocket endpoint and no user interaction needed can submit deeply nested subscription queries, and on schemas with recursive types this can cause a denial of service through exponential resolution on each subscription event.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:42Z"},"euvd":{"id":"EUVD-2026-10081","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mercurius-js-mercurius-cve-2025-64166","parents":[{"from":"CVE-2025-64166","to":"CVE-2026-30241","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:mercurius","fromFixed":"16.4.0","toFixed":"16.8.0","daysApart":1},{"kind":"same-code","provenance":"machine","files":["index.js","lib/routes.js"],"commits":["https://github.com/mercurius-js/mercurius/commit/962d402ec7a92342f4a1b7f5f04af01776838c3c","https://github.com/mercurius-js/mercurius/commit/5b56f60f4b0d60780b0ff499a479bd830bdd6986"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.23,"basis":"same product + description similarity"}]}],"packageHistory":[{"cve":"CVE-2021-43801","published":"2021-12-13","fixed":"8.11.2","kev":false},{"cve":"CVE-2023-22477","published":"2023-01-09","fixed":"11.5.0","kev":false},{"cve":"CVE-2025-64166","published":"2026-03-05","fixed":"16.4.0","kev":false},{"cve":"CVE-2026-30241","published":"2026-03-06","fixed":"16.8.0","kev":false}],"package":"npm:mercurius"}}