{"id":"CVE-2023-22477","aliases":["CVE-2023-22477","GHSA-cm8h-q92v-xcfc"],"related":[],"kind":"vulnerability","state":"published","title":"Mercurius is vulnerable to denial of service (DoS) when using subscriptions","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAny 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`.\n\n### Patches\n\nThis was patched in https://github.com/mercurius-js/mercurius/pull/940.\nThe patch was released as v11.5.0 and v8.13.2.\n\n### Workarounds\n\nDisable subscriptions.\n\n### References\n\nReported publicly as https://github.com/mercurius-js/mercurius/issues/939.\nThe same problem was solved in https://github.com/fastify/fastify-websocket/pull/228","format":"markdown","source":"ghsa"},{"lang":"es","text":"Mercurius es un adaptador GraphQL para Fastify. Cualquier usuario de Mercurius hasta la versión 10.5.0 está sujeto a un ataque de denegación de servicio al enviar un paquete con formato incorrecto a través de WebSocket a \"/graphql\". Este problema se solucionó en el n.° 940. Como workaround, los usuarios pueden desactivar las suscripciones.","source":"nvd"}],"published":"2023-01-09T14:12:24.837Z","modified":"2026-06-17T05:35:32.530Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"version":"< 10.5.0","status":"affected"}],"vendor":"mercurius-js","product":"mercurius","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"9.0.0","status":"affected","fixed":"11.5.0"}],"ecosystem":"npm","package":"mercurius","purl":"pkg:npm/mercurius","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"8.13.2"}],"ecosystem":"npm","package":"mercurius","purl":"pkg:npm/mercurius","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"8.13.2"},{"status":"affected","introduced":"9.0.0","fixed":"11.5.0"}],"vendor":"mercurius_project","product":"mercurius","cpe":"cpe:2.3:a:mercurius_project:mercurius:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/mercurius-js/mercurius/security/advisories/GHSA-cm8h-q92v-xcfc","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mercurius-js/mercurius/issues/939","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mercurius-js/mercurius/pull/940","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22477","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/fastify/fastify-websocket/pull/228","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/mercurius-js/mercurius","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-03-10T21:02:16.984Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-22477","url":"https://www.cve.org/CVERecord?id=CVE-2023-22477","licence":"CVE Terms of Use","modified":"2025-03-10T21:31:05.984Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cm8h-q92v-xcfc","url":"https://github.com/advisories/GHSA-cm8h-q92v-xcfc","licence":"CC-BY-4.0","modified":"2023-11-08T04:11:36.112Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-22477","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22477","licence":"Public domain","modified":"2026-06-17T05:35:32.530Z"}],"updatedAt":"2026-11-25T22:58:21.497Z","epss":{"score":0.01127,"percentile":0.67258,"date":"2026-12-01T12:00:22.000Z"}}