mercurius-js/mercurius · Security
mercurius has Uncaught Exception when using subscriptions
- GHSA ID
- GHSA-cm8h-q92v-xcfc
- CVE ID
- CVE-2023-22477
- Severity
- medium
- Published
- Updated
- CVSS
- 5.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CVSS v3
- 5.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Description
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
CWEs
- CWE-248 · Uncaught Exception
References
- https://github.com/mercurius-js/mercurius/security/advisories/GHSA-cm8h-q92v-xcfc ↗
- https://nvd.nist.gov/vuln/detail/CVE-2023-22477 ↗
- https://github.com/mercurius-js/mercurius/issues/939 ↗
- https://github.com/fastify/fastify-websocket/pull/228 ↗
- https://github.com/mercurius-js/mercurius/pull/940 ↗
- https://github.com/advisories/GHSA-cm8h-q92v-xcfc ↗