Skip to main content
VulnerabilityPublished Updated

CVE-2026-30241: mercurius · Incorrect Authorization

Affects mercuriusSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 2.7 Low : upgrade to 16.8.0 when convenient.

Data as of 29 Oct 2026, 19:04 UTC

CVSS 4.0 base score
2.7Low
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 31% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 16.8.0
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade mercurius and mercurius-js/mercurius to 16.8.0.

Affected software

ProductAffectedFixed in
mercurius-jsmercuriusAffected
  • <16.8.0
Fixed in
  • 16.8.0
npmmercurius-js/mercuriuspkg:npm/mercurius-js/mercuriusOther threatsAffected
  • <16.8.0
Fixed in
  • 16.8.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The primary mitigation is to upgrade mercurius to version 16.8.0 or later, where the depth validation is correctly enforced on subscription queries over WebSocket. Organizations should audit their GraphQL APIs to identify mercurius versions in use and prioritize patching vulnerable instances. Additionally, implement WebSocket connection rate limiting and query complexity analysis to detect and block abnormal subscription query patterns. Monitoring resource usage and setting thresholds for subscription event processing can help detect potential abuse. Employ network-level controls to restrict access to subscription endpoints where possible. For schemas with recursive types, consider schema design reviews to limit recursion depth and complexity. Logging and alerting on unusually deep or complex subscription queries can provide early warning of exploitation attempts. Finally, maintain up-to-date dependency management and vulnerability scanning to detect and remediate similar issues promptly.

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.

References

Community reviews

Loading reviews…