Uncontrolled Recursion Affecting mercurius package, versions <16.8.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-MERCURIUS-15435881
  • published6 Mar 2026
  • disclosed6 Mar 2026
  • creditLetaoZhao

Introduced: 6 Mar 2026

NewCVE-2026-30241  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade mercurius to version 16.8.0 or higher.

Overview

mercurius is a GraphQL adapter for Fastify

Affected versions of this package are vulnerable to Uncontrolled Recursion in the subscription queries received over WebSocket connections. An attacker can bypass intended query depth restrictions by submitting deeply nested subscription queries via WebSocket, potentially causing excessive resource consumption and service disruption.

References

CVSS Base Scores

version 4.0
version 3.1