{"id":"CVE-2021-43801","aliases":["CVE-2021-43801","GHSA-273r-rm8g-7f3x"],"related":[],"kind":"vulnerability","state":"published","title":"Uncaught Exception in mercurius","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAny 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.\n\n### Patches\n\nThe vulnerability has been fixed in https://github.com/mercurius-js/mercurius/pull/678 and shipped as v8.11.2.\n\n### Workarounds\n\nUse a custom error handler.\n\n### References\n\nSee https://github.com/mercurius-js/mercurius/issues/677\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in https://github.com/mercurius-js/mercurius\n* Email us at [hello@matteocollina.com](mailto:hello@matteocollina.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Mercurius es un adaptador GraphQL para Fastify. Cualquier usuario de Mercurius@ versiones 8.10.0 a 8.11.1, está sujeto a un ataque de denegación de servicio mediante el envío de un JSON malformado a \"/graphql\" a menos que esté usando un administrador de errores personalizado. La vulnerabilidad ha sido corregida en https://github.com/mercurius-js/mercurius/pull/678 y ha sido distribuida en la versión 8.11.2. Como solución, los usuarios pueden usar un administrador de errores personalizado","source":"nvd"}],"published":"2021-12-13T19:30:12.000Z","modified":"2026-07-08T06:28:22.772Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-754"],"affected":[{"ranges":[{"version":">= 8.10.0, < 8.11.2","status":"affected"}],"vendor":"mercurius-js","product":"mercurius","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"8.10.0","status":"affected","fixed":"8.11.2"}],"ecosystem":"npm","package":"mercurius","purl":"pkg:npm/mercurius","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"8.10.0","fixed":"8.11.2"}],"vendor":"mercurius_project","product":"mercurius","cpe":"cpe:2.3:a:mercurius_project:mercurius:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/mercurius-js/mercurius/security/advisories/GHSA-273r-rm8g-7f3x","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mercurius-js/mercurius/issues/677","tags":["issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mercurius-js/mercurius/pull/678/commits/732b2f895312da8deadd7b173dcd2d141d54b223","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43801","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mercurius-js/mercurius","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-43801","url":"https://www.cve.org/CVERecord?id=CVE-2021-43801","licence":"CVE Terms of Use","modified":"2024-08-04T04:03:08.899Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-273r-rm8g-7f3x","url":"https://github.com/advisories/GHSA-273r-rm8g-7f3x","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:22.772Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-43801","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43801","licence":"Public domain","modified":"2026-06-17T04:11:27.953Z"}],"updatedAt":"2026-11-25T22:24:36.219Z","epss":{"score":0.01572,"percentile":0.76126,"date":"2026-12-01T12:00:22.000Z"}}