# CVE-2023-22477: Mercurius is vulnerable to denial of service (DoS) when using subscriptions

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.13%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-09T14:12:24.837Z
- Modified: 2026-06-17T05:35:32.530Z
- Also known as: GHSA-cm8h-q92v-xcfc
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- mercurius-js mercurius: < 10.5.0
- mercurius (npm): from 9.0.0 before 11.5.0; before 8.13.2
- mercurius_project mercurius: before 8.13.2; from 9.0.0 before 11.5.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/mercurius-js/mercurius/issues/939> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/mercurius-js/mercurius/security/advisories/GHSA-cm8h-q92v-xcfc> (patch, third-party-advisory, web)
- <https://github.com/mercurius-js/mercurius/pull/940> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-22477> (advisory)
- <https://github.com/fastify/fastify-websocket/pull/228> (web)
- <https://github.com/mercurius-js/mercurius> (package)

## Sources

- CVE List: [CVE-2023-22477](https://www.cve.org/CVERecord?id=CVE-2023-22477), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-cm8h-q92v-xcfc](https://github.com/advisories/GHSA-cm8h-q92v-xcfc), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-22477](https://nvd.nist.gov/vuln/detail/CVE-2023-22477), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-22477 · Whole record: https://cve.day/CVE-2023-22477.json · Rebuilt by cve.day 2026-11-25T22:58:21.497Z
