{"id":"CVE-2023-22477","aliases":["GHSA-cm8h-q92v-xcfc"],"url":"https://o3.security/vulnerability/CVE-2023-22477","summary":"Mercurius is vulnerable to denial of service (DoS) when using subscriptions","details":"### 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\n","published":"2023-01-09T14:12:24.837Z","modified":"2026-10-28T02:30:42.674618774Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"mercurius","fixedVersion":"11.5.0"},{"ecosystem":"npm","name":"mercurius","fixedVersion":"8.13.2"}],"fix":{"url":"https://github.com/mercurius-js/mercurius/pull/940","label":"mercurius-js/mercurius#940"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22477.json"},{"type":"ADVISORY","url":"https://github.com/mercurius-js/mercurius/security/advisories/GHSA-cm8h-q92v-xcfc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22477"},{"type":"REPORT","url":"https://github.com/mercurius-js/mercurius/issues/939"},{"type":"FIX","url":"https://github.com/mercurius-js/mercurius/pull/940"},{"type":"WEB","url":"https://github.com/fastify/fastify-websocket/pull/228"},{"type":"PACKAGE","url":"https://github.com/mercurius-js/mercurius"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:42.674618774Z"}}