Vulnerability · Published Jan 9, 2023 · Assigned by GitHub_M

CVE-2023-22477Mercurius is vulnerable to denial of service (DoS) when using subscriptions

Medium 5.3

In plain English

A medium-severity security flaw in mercurius from mercurius-js. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.1%top 34.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmercurius11.5.0GHSA-cm8h-q92v-xcfc
npmmercurius8.13.2GHSA-cm8h-q92v-xcfc

Affected products (as reported)

VendorProductVersions
mercurius-js mercurius < 10.5.0

Weakness: CWE-248 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References