CVE-2023-22477
JSON

5.3medium

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

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.13% (higher than 67% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-cm8h-q92v-xcfc

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

Product or packageVersionsReported by
mercurius-js mercurius< 10.5.0CVE List
mercurius (npm)from 9.0.0 before 11.5.0, before 8.13.2GitHub Advisory Database
mercurius_project mercuriusbefore 8.13.2, from 9.0.0 before 11.5.0NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-248

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

Any users of Mercurius until version v11.5.0 are subjected to a denial of service attack by sending a malformed packet over WebSocket to /graphql.

Patches

This was patched in https://github.com/mercurius-js/mercurius/pull/940. The patch was released as v11.5.0 and v8.13.2.

Workarounds

Disable subscriptions.

References

Reported publicly as https://github.com/mercurius-js/mercurius/issues/939. The same problem was solved in https://github.com/fastify/fastify-websocket/pull/228

NVD (es)

Mercurius es un adaptador GraphQL para Fastify. Cualquier usuario de Mercurius hasta la versión 10.5.0 está sujeto a un ataque de denegación de servicio al enviar un paquete con formato incorrecto a través de WebSocket a "/graphql". Este problema se solucionó en el n.° 940. Como workaround, los usuarios pueden desactivar las suscripciones.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-22477 changed 2025-03-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-cm8h-q92v-xcfc changed 2023-11-08CC-BY-4.0
NVDCVE-2023-22477 changed 2026-06-17Public domain