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

- Severity: Low 2.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-03-06T18:47:52.000Z
- Modified: 2026-06-17T10:32:33.040Z
- Also known as: GHSA-m4h2-mjfm-mp55
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- mercurius-js mercurius: < 16.8.0
- mercurius (npm): before 16.8.0
- mercurius_project mercurius: before 16.8.0

## Every score

- GitHub_M: CVSS:4.0 2.7 Low `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`
- GitHub: CVSS:4.0 Low `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`
- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`

## References

- <https://github.com/mercurius-js/mercurius/security/advisories/GHSA-m4h2-mjfm-mp55> (vendor-advisory, web)
- <https://github.com/mercurius-js/mercurius/commit/5b56f60f4b0d60780b0ff499a479bd830bdd6986> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-30241> (advisory)
- <https://github.com/mercurius-js/mercurius> (package)

## Sources

- CVE List: [CVE-2026-30241](https://www.cve.org/CVERecord?id=CVE-2026-30241), CVE Terms of Use, modified 2026-03-09
- GitHub Advisory Database: [GHSA-m4h2-mjfm-mp55](https://github.com/advisories/GHSA-m4h2-mjfm-mp55), CC-BY-4.0, modified 2026-03-09
- NVD: [CVE-2026-30241](https://nvd.nist.gov/vuln/detail/CVE-2026-30241), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-30241 · Whole record: https://cve.day/CVE-2026-30241.json · Rebuilt by cve.day 2026-11-25T22:59:15.444Z
