Skip to content
OpenAdvisories
Medium · 5.3 CVE-2023-22477 EUVD-2023-0446GHSA-cm8h-q92v-xcfc

Mercurius is vulnerable to denial of service (DoS) when using subscriptions

Published Jan 9, 2023 · Updated Mar 10, 2025 · Assigned by GitHub_M

Description

Mercurius is a GraphQL adapter for Fastify. Any users of Mercurius until version 10.5.0 are subjected to a denial of service attack by sending a malformed packet over WebSocket to `/graphql`. This issue was patched in #940. As a workaround, users can disable subscriptions.

Affected products

VendorProductAffectedFixed
mercurius-js mercurius < 10.5.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm mercurius >= 9.0.0, < 11.5.0 11.5.0 GHSA-cm8h-q92v-xcfc
npm mercurius < 8.13.2 8.13.2 GHSA-cm8h-q92v-xcfc

References