GHSA-m4h2-mjfm-mp55

Suggest an improvement
Source
https://github.com/advisories/GHSA-m4h2-mjfm-mp55
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-m4h2-mjfm-mp55/GHSA-m4h2-mjfm-mp55.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m4h2-mjfm-mp55
Aliases
Published
2026-03-06T18:47:52Z
Modified
2026-03-09T13:16:31.467783Z
Severity
  • 2.7 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
Mercurius's queryDepth limit bypassed for WebSocket subscriptions
Details

Description

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.

Workarounds

Disable subscriptions and, in general, queries over the WebSocket.

Database specific
{
    "github_reviewed_at": "2026-03-06T18:47:52Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-863"
    ],
    "nvd_published_at": "2026-03-06T22:16:01Z",
    "severity": "LOW"
}
References

Affected packages

npm / mercurius

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
16.8.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-m4h2-mjfm-mp55/GHSA-m4h2-mjfm-mp55.json"