{"id":"CVE-2021-43801","published":"2021-12-13T19:30:12Z","modified":"2024-08-04T04:03:08Z","title":"Uncaught Exception in mercurius","vendor":"mercurius-js","product":"mercurius","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01572,"percentile":0.76003,"provenance":"source"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"references":[{"url":"https://github.com/mercurius-js/mercurius/security/advisories/GHSA-273r-rm8g-7f3x","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mercurius-js/mercurius/issues/677","tags":["x_refsource_MISC"]},{"url":"https://github.com/mercurius-js/mercurius/pull/678/commits/732b2f895312da8deadd7b173dcd2d141d54b223","tags":["x_refsource_MISC"]}],"priority":{"score":20.5,"factors":[{"name":"EPSS percentile","points":15.2},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"mercurius-js","affectedVersions":[{"vendor":"mercurius-js","product":"mercurius","versions":[">= 8.10.0, < 8.11.2"]}],"affected":[{"ecosystem":"npm","package":"mercurius","vulnerableRanges":[">=8.10.0, <8.11.2"],"patched":["8.11.2"],"from":["GHSA-273r-rm8g-7f3x"],"provenance":"source"}],"summary":{"text":"The mercurius GraphQL adapter for Fastify, from the mercurius-js project, has an uncaught exception that is triggered when it receives malformed JSON at its /graphql endpoint. An unauthenticated remote attacker can crash the service with a denial-of-service request sent over the network, but only in versions 8.10.0 through 8.11.1 and only where the application does not use a custom error handler.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:32Z"},"euvd":{"id":"EUVD-2021-2420","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-43801","published":"2021-12-13","fixed":"8.11.2","kev":false},{"cve":"CVE-2023-22477","published":"2023-01-09","fixed":"11.5.0","kev":false,"link":{"from":"CVE-2021-43801","to":"CVE-2023-22477","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:mercurius","fromFixed":"8.11.2","toFixed":"8.13.2","daysApart":392}]}},{"cve":"CVE-2025-64166","published":"2026-03-05","fixed":"16.4.0","kev":false},{"cve":"CVE-2026-30241","published":"2026-03-06","fixed":"16.8.0","kev":false}],"package":"npm:mercurius"}}