{"id":"CVE-2023-22477","summary":"Mercurius is vulnerable to denial of service (DoS) when using subscriptions","details":"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","aliases":["GHSA-cm8h-q92v-xcfc"],"modified":"2026-08-12T03:51:20.467511309Z","published":"2023-01-09T14:12:24.837Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22477.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-248"]},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mercurius-js/mercurius","events":[{"introduced":"0"},{"fixed":"aa0cac21aac3599b73449351a2f4f1f0a1a82659"},{"introduced":"c0c0dd394e06b645f37f0d7f99564d0dc06179bb"},{"fixed":"59682afa44328d4e406cc99be5035d44e733f339"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:mercurius_project:mercurius:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"8.13.2"},{"introduced":"9.0.0"},{"fixed":"11.5.0"}]}}],"versions":["v8.13.1","v11.4.0","v11.3.0","v11.2.0","v11.1.0","v11.0.1","v11.0.0","v10.5.1","v10.5.0","v10.4.0","v10.3.0","v10.2.0","v10.1.1","v8.13.0","v10.1.0","v10.0.0","v9.8.0","v9.7.0","v9.5.0","v8.12.2","v9.4.0","v9.3.6","v8.12.1","v8.12.0","v9.3.5","v9.3.4","v9.3.3","v9.3.2","v9.3.1","v9.3.0","v9.2.0","v9.1.0","v9.0.0","v8.11.2","v8.11.1","v8.11.0","v8.10.0","v8.9.1","v8.9.0","v8.8.0","v8.7.0","v8.6.0","v8.5.0","v8.4.2","v8.4.1","v8.4.0","v8.3.0","v8.2.1","v8.2.0","v8.1.3","8.1.2","v8.1.1","v8.1.0","v8.0.0","v7.9.1","v7.9.0","v7.8.0","v7.7.0","v7.6.1","v7.6.0","v7.5.0","v7.4.0","v7.3.3","v7.3.2","v7.3.1","v7.3.0","v7.2.0","v7.1.0","v7.0.0","v6.12.0","v6.11.0","v6.10.1","v6.10.0","v6.9.1","v6.9.0","v6.8.0","v6.7.0","v6.6.0","v6.4.0","v6.3.0","v6.2.0","v6.1.1","v6.1.0","v6.0.0","v5.8.2","v5.8.1","v5.8.0","v5.7.0","v5.6.0","v5.5.0","v5.4.0","v5.3.4","v5.3.3","v5.3.2","v5.3.1","v5.3.0","v5.2.0","v5.1.2","v5.1.1","v5.1.0","v5.0.1","v5.0.0","v4.3.0","v4.2.0","v4.1.0","v4.0.0","v3.9.0","v3.8.0","v3.7.0","v3.6.0","v3.4.0","v3.3.0","v3.2.0","v3.1.0","v3.0.7","v3.0.5","v3.0.4","v3.0.3","v3.0.2","v3.0.1","v3.0.0","v2.2.0","v2.1.0","v2.0.4","v2.0.3","v2.0.2","v2.0.1","untagged-320a6f59c58f12bd5bea","v2.0.0","v1.5.0","v1.4.0","v1.3.0","v1.2.0","v1.1.0","v1.0.0","v0.8.0","v0.7.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-22477.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}