{"id":"GHSA-cm8h-q92v-xcfc","summary":"mercurius has Uncaught Exception 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","aliases":["CVE-2023-22477"],"modified":"2023-11-08T04:11:36.112865Z","published":"2023-01-09T21:55:44Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-01-09T21:55:44Z","nvd_published_at":"2023-01-09T15:15:00Z","cwe_ids":["CWE-248"],"severity":"MODERATE"},"references":[{"type":"WEB","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":"WEB","url":"https://github.com/mercurius-js/mercurius/issues/939"},{"type":"WEB","url":"https://github.com/fastify/fastify-websocket/pull/228"},{"type":"WEB","url":"https://github.com/mercurius-js/mercurius/pull/940"},{"type":"PACKAGE","url":"https://github.com/mercurius-js/mercurius"}],"affected":[{"package":{"name":"mercurius","ecosystem":"npm","purl":"pkg:npm/mercurius"},"ranges":[{"type":"SEMVER","events":[{"introduced":"9.0.0"},{"fixed":"11.5.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-cm8h-q92v-xcfc/GHSA-cm8h-q92v-xcfc.json"}},{"package":{"name":"mercurius","ecosystem":"npm","purl":"pkg:npm/mercurius"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"8.13.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-cm8h-q92v-xcfc/GHSA-cm8h-q92v-xcfc.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"}]}