All reports
Medium

mercurius has Uncaught Exception when using subscriptions

Affected versions

Affected versions
< 8.13.2
Fixed version
8.13.2
Affected versions
>= 9.0.0, < 11.5.0
Fixed version
11.5.0

Exploitation

CVE-2023-22477

Probability of exploitation in the next 30 days: 1.13%

FIRST EPSS · 2026-11-23

Description

Impact

Any 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.

Patches

This was patched in https://github.com/mercurius-js/mercurius/pull/940. The patch was released as v11.5.0 and v8.13.2.

Workarounds

Disable subscriptions.

References

Reported publicly as https://github.com/mercurius-js/mercurius/issues/939. The same problem was solved in https://github.com/fastify/fastify-websocket/pull/228

Links

Credits

  • marcolanaro