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 package | Versions | Reported by |
|---|---|---|
| mercurius-js mercurius | < 10.5.0 | CVE List |
| mercurius (npm) | from 9.0.0 before 11.5.0, before 8.13.2 | GitHub Advisory Database |
| mercurius_project mercurius | before 8.13.2, from 9.0.0 before 11.5.0 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
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
| https://github.com/mercurius-js/mercurius/security/advisories/GHSA-cm8h-q92v-xcfc | patch, third-party-advisory, web | |
| https://github.com/mercurius-js/mercurius/issues/939 | exploit, issue-tracking, third-party-advisory, web | |
| https://github.com/mercurius-js/mercurius/pull/940 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-22477 | advisory | |
| https://github.com/fastify/fastify-websocket/pull/228 | web | |
| https://github.com/mercurius-js/mercurius | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-22477 changed 2025-03-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-cm8h-q92v-xcfc changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2023-22477 changed 2026-06-17 | Public domain |