Back to CVE records
Low 2.7Published Mar 6, 2026

CVE-2026-30241Mercurius: queryDepth limit bypassed for WebSocket subscriptions

Updated under an hour ago ()

Does this affect you?

It affects mercurius-js mercurius and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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
2.7 LOW (v4.0, CNA)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
Weakness (CWE)
CWE-863
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Analyzed
Record last updated
Mar 9, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
mercurius-js mercurius
mercurius_js:mercurius (from the name)
before 16.8.0
CNA record
mercurius_project mercurius
mercurius_project:mercurius
before 16.8.0
NVD

References

  • x-refsource-confirm, vendor-advisory
  • x-refsource-misc, patch

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.