Advisory

GHSA-cm8h-q92v-xcfc

Also known as: CVE-2023-22477

Summary

mercurius has Uncaught Exception when using subscriptions

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-01-09 21:55 UTC
Modified
2023-11-08 04:11 UTC

Affected packages and fixes

mercurius

npm · All systems

Affected

  • introduced 9.0.0, fixed 11.5.0 (semver)

Fixed versions

11.5.0

Fix

mercurius

npm · All systems

Affected

  • introduced 0, fixed 8.13.2 (semver)

Fixed versions

8.13.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences