# CVE-2021-43801: Uncaught Exception in mercurius

- Severity: High 7.5 (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:H`
- 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.57%, higher than 76% of CVEs (2026-12-01)
- Published: 2021-12-13T19:30:12.000Z
- Modified: 2026-07-08T06:28:22.772Z
- Also known as: GHSA-273r-rm8g-7f3x
- Weaknesses: CWE-754
- Assigned by: GitHub_M

## Description

Mercurius is a GraphQL adapter for Fastify. 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. The vulnerability has been fixed in https://github.com/mercurius-js/mercurius/pull/678 and shipped as v8.11.2. As a workaround users may use a custom error handler.

(As written by CVE List.)

## Affected

- mercurius-js mercurius: >= 8.10.0, < 8.11.2
- mercurius (npm): from 8.10.0 before 8.11.2
- mercurius_project mercurius: from 8.10.0 before 8.11.2

## Every score

- GitHub_M: 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`
- GitHub: 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`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/mercurius-js/mercurius/security/advisories/GHSA-273r-rm8g-7f3x> (patch, third-party-advisory, web)
- <https://github.com/mercurius-js/mercurius/issues/677> (issue-tracking, patch, third-party-advisory, web)
- <https://github.com/mercurius-js/mercurius/pull/678/commits/732b2f895312da8deadd7b173dcd2d141d54b223> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43801> (advisory)
- <https://github.com/mercurius-js/mercurius> (package)

## Sources

- CVE List: [CVE-2021-43801](https://www.cve.org/CVERecord?id=CVE-2021-43801), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-273r-rm8g-7f3x](https://github.com/advisories/GHSA-273r-rm8g-7f3x), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-43801](https://nvd.nist.gov/vuln/detail/CVE-2021-43801), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-43801 · Whole record: https://cve.day/CVE-2021-43801.json · Rebuilt by cve.day 2026-11-25T22:24:36.219Z
