GitHub Advisoryadvisory · npm
GHSA-cm8h-q92v-xcfc mercurius has Uncaught Exception when using subscriptions
MEDIUM
Official page ↗
- Aliases
- CVE-2023-22477
- Ecosystem
- npm
- Packages
- mercurius
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Weaknesses
- CWE-248
- Reviewed
- 2023-01-09
Affected packages
• npm mercurius: >= 9.0.0, < 11.5.0 → fixed in 11.5.0
• npm mercurius: < 8.13.2 → fixed in 8.13.2
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
Related
Alias · CVE (1)
- CVE-2023-22477 Mercurius is a GraphQL adapter for Fastify. vulnerability
Weakness · CWE (1)
- CWE-248 Uncaught Exception weakness
References
- https://github.com/mercurius-js/mercurius/security/advisories/GHSA-cm8h-q92v-xcfc web
- https://nvd.nist.gov/vuln/detail/CVE-2023-22477 advisory
- https://github.com/mercurius-js/mercurius/issues/939 web
- https://github.com/fastify/fastify-websocket/pull/228 web
- https://github.com/mercurius-js/mercurius/pull/940 web
- https://github.com/mercurius-js/mercurius package