Uncaught Exception in mercurius
Impact
Any users from Mercurius@8.10.0 to 8.11.1 are subjected to a denial of service attack by sending a malformed JSON to /graphql unless they are using a custom error handler.
Patches
The vulnerability has been fixed in https://github.com/mercurius-js/mercurius/pull/678 and shipped as v8.11.2.
Workarounds
Use a custom error handler.
References
See https://github.com/mercurius-js/mercurius/issues/677
For more information
If you have any questions or comments about this advisory:
- Open an issue in https://github.com/mercurius-js/mercurius
- Email us at hello@matteocollina.com
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | mercurius | >= 8.10.0, < 8.11.2 | 8.11.2 |
References
- https://github.com/mercurius-js/mercurius/security/advisories/GHSA-273r-rm8g-7f3x
- https://nvd.nist.gov/vuln/detail/CVE-2021-43801
- https://github.com/mercurius-js/mercurius/issues/677
- https://github.com/mercurius-js/mercurius/pull/678/commits/732b2f895312da8deadd7b173dcd2d141d54b223
- https://github.com/mercurius-js/mercurius
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Weakness (CWE)
CWE-754- Platform
- npm
- Package
mercurius- Disclosed
- 13.12.2021
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-273r-rm8g-7f3x - CC BY 4.0
Vulnerability history: mercurius
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 4
- First → latest
- 12.2021 03.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 2
- Low 1
Disclosures per year
- 2021: 1
- 2022: 0
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 2
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.