CVE-2021-43801 json
Uncaught Exception in mercurius
published 2021-12-13 4 y ago modified 2026-07-08 4 mo ago also GHSA-273r-rm8g-7f3x , EUVD-2021-2420
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm mercurius 8.11.2
- mercurius_project mercurius 8.11.2
Exploit prediction
1.57% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | mercurius | >=8.10.0, <8.11.2 |
8.11.2 |
Affected products
- mercurius-js mercurius
Classification
- Weakness
-
- CWE-754 Improper Check for Unusual or Exceptional Conditions
References
-
github.com
/mercurius-js/mercurius/pull/678/commits/732b2f895312da8deadd7b173dcd2d141d54b223
web, patch, third-party-advisory
-
github.com
/mercurius-js/mercurius/security/advisories/GHSA-273r-rm8g-7f3x
web, patch, third-party-advisory
-
github.com
/mercurius-js/mercurius/issues/677
web, issue-tracking, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-43801
advisory
-
github.com
/mercurius-js/mercurius
package
Sources
- CVE List CVE-2021-43801
- GitHub Advisory GHSA-273r-rm8g-7f3x
- NVD CVE-2021-43801
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.