{"id":"CVE-2023-22477","published":"2023-01-09T14:12:24Z","modified":"2025-03-10T21:31:05Z","title":"Mercurius is vulnerable to denial of service (DoS) when using subscriptions","vendor":"mercurius-js","product":"mercurius","tier":"tail","description":{"text":"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.\n\n","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01127,"percentile":0.67128,"provenance":"source"},"cwes":[{"id":"CWE-248","name":"Uncaught Exception"}],"references":[{"url":"https://github.com/mercurius-js/mercurius/security/advisories/GHSA-cm8h-q92v-xcfc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mercurius-js/mercurius/issues/939","tags":["x_refsource_MISC"]},{"url":"https://github.com/mercurius-js/mercurius/pull/940","tags":["x_refsource_MISC"]}],"priority":{"score":17.1,"factors":[{"name":"EPSS percentile","points":13.43},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"mercurius-js","affectedVersions":[{"vendor":"mercurius-js","product":"mercurius","versions":["< 10.5.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-10T21:02:16.984138Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"mercurius","vulnerableRanges":[">=9.0.0, <11.5.0","<8.13.2"],"patched":["11.5.0","8.13.2"],"from":["GHSA-cm8h-q92v-xcfc"],"provenance":"source"}],"summary":{"text":"The Mercurius GraphQL adapter for Fastify, in its mercurius package, contains a flaw in its WebSocket subscription handling at the /graphql endpoint. An attacker with network access can send a malformed packet over WebSocket to trigger an uncaught exception and cause a denial of service, requiring no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:17:45Z"},"euvd":{"id":"EUVD-2023-0446","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-43801","published":"2021-12-13","fixed":"8.11.2","kev":false,"link":{"from":"CVE-2021-43801","to":"CVE-2023-22477","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:mercurius","fromFixed":"8.11.2","toFixed":"8.13.2","daysApart":392}]}},{"cve":"CVE-2023-22477","published":"2023-01-09","fixed":"11.5.0","kev":false},{"cve":"CVE-2025-64166","published":"2026-03-05","fixed":"16.4.0","kev":false},{"cve":"CVE-2026-30241","published":"2026-03-06","fixed":"16.8.0","kev":false}],"package":"npm:mercurius"}}