CVE-2023-22477
HIGH 7.5CVSS 3.1mercurius has Uncaught Exception when using subscriptions
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.
- Published
- 9 Jan 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-248
- Also known as
- GHSA-cm8h-q92v-xcfc
- Sources
- NVDJSONOSV GHSA-cm8h-q92v-xcfcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mercurius_project | mercuriuscpe:2.3:a:mercurius_project:mercurius:*:*:*:*:*:node.js:*:* |
< 8.13.2 | 8.13.2 |
| NVD | mercurius_project | mercuriuscpe:2.3:a:mercurius_project:mercurius:*:*:*:*:*:node.js:*:* |
>= 9.0.0, < 11.5.0 | 11.5.0 |
| OSV | npm | mercurius | >= 9.0.0, < 11.5.0 | 11.5.0 |
| OSV | npm | mercurius | < 8.13.2 | 8.13.2 |
References
- 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://github.com/mercurius-js/mercurius/security/advisories/GHSA-cm8h-q92v-xcfc · 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
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 9 Jan 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Jan 2023)