CVE-2023-22477 json
Mercurius is vulnerable to denial of service (DoS) when using subscriptions
published 2023-01-09 3 y ago modified 2026-06-17 4 mo ago also GHSA-cm8h-q92v-xcfc , EUVD-2023-0446
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 65%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm mercurius 8.13.2, 11.5.0
- mercurius_project mercurius 8.13.2, 11.5.0
- github.com/mercurius-js/mercurius#940 pull request
- github.com/fastify/fastify-websocket#228 pull request
- github.com/mercurius-js/mercurius/security/advisories/GHSA-cm8h-q92v-… advisory
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
1.09% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/mercurius-js/mercurius/issues/939 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | mercurius | >=9.0.0, <11.5.0 <8.13.2 |
11.5.0 8.13.2 |
Affected products
- mercurius-js mercurius
Classification
- Weakness
-
- CWE-248 Uncaught Exception
References
-
github.com
/mercurius-js/mercurius/pull/940
web, patch, third-party-advisory
-
github.com
/mercurius-js/mercurius/security/advisories/GHSA-cm8h-q92v-xcfc
web, patch, third-party-advisory
-
github.com
/fastify/fastify-websocket/pull/228
web
-
github.com
/mercurius-js/mercurius/issues/939
web, exploit, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-22477
advisory
-
github.com
/mercurius-js/mercurius
package
Sources
- CVE List CVE-2023-22477
- GitHub Advisory GHSA-cm8h-q92v-xcfc
- NVD CVE-2023-22477
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.