Skip to content

Uncaught Exception in mercurius when using subscriptions

Moderate
mcollina published GHSA-cm8h-q92v-xcfc Jan 8, 2023

Package

npm mercurius (npm)

Affected versions

< 8.13.2; >= 9.0.0 < 11.5.0

Patched versions

>= 8.13.2 < 9.0.0 >= 11.5.0

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 #940.
The patch was released as v11.5.0 and v8.13.2.

Workarounds

Disable subscriptions.

References

Reported publicly as #939.
The same problem was solved in fastify/fastify-websocket#228

Severity

Moderate
5.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

CVE ID

CVE-2023-22477

Weaknesses

Credits