Live threats

All CVEs / Mercurius Project

CVE-2026-30241Mercurius Project Mercurius

Low 2.7 No auth needed

Priority
31
CVSS 4.0
2.7
EPSS
—
Auth required
No
Published
Mar 6, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-863
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mercurius.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm mercurius < 16.8.0 16.8.0 npm install mercurius@16.8.0

Per OSV / GitHub Advisories (GHSA-m4h2-mjfm-mp55). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mercurius_projectmercurius< 16.8.0

Official sources

References

Links published by the sources. Open them with care.