{"id":"CVE-2021-43801","state":"PUBLISHED","title":"Uncaught Exception in mercurius","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.","publishedAt":"2021-12-13T19:30:12.000Z","updatedAt":"2024-08-04T04:03:08.899Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["mercurius-js mercurius"],"affected":[{"vendor":"mercurius-js","product":"mercurius","versions":[{"version":">= 8.10.0, < 8.11.2","status":"affected"}]}],"references":["https://github.com/mercurius-js/mercurius/security/advisories/GHSA-273r-rm8g-7f3x","https://github.com/mercurius-js/mercurius/issues/677","https://github.com/mercurius-js/mercurius/pull/678/commits/732b2f895312da8deadd7b173dcd2d141d54b223"],"weaknesses":["CWE-754"],"ingestedAt":"2026-10-29T19:49:07.642Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/43xxx/CVE-2021-43801.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-43801","state":"PUBLISHED","datePublished":"2021-12-13T19:30:12.000Z","dateUpdated":"2024-08-04T04:03:08.899Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2021-11-16T00:00:00.000Z"},"containers":{"cna":{"title":"Uncaught Exception in mercurius","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"mercurius-js","product":"mercurius","versions":[{"version":">= 8.10.0, < 8.11.2","status":"affected"}]}],"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"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-754","description":"CWE-754: Improper Check for Unusual or Exceptional Conditions","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2021-12-13T19:30:12.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-273r-rm8g-7f3x","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-43801","STATE":"PUBLIC","TITLE":"Uncaught Exception in mercurius"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"mercurius","version":{"version_data":[{"version_value":">= 8.10.0, < 8.11.2"}]}}]},"vendor_name":"mercurius-js"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-754: Improper Check for Unusual or Exceptional Conditions"}]}]},"references":{"reference_data":[{"name":"https://github.com/mercurius-js/mercurius/security/advisories/GHSA-273r-rm8g-7f3x","refsource":"CONFIRM","url":"https://github.com/mercurius-js/mercurius/security/advisories/GHSA-273r-rm8g-7f3x"},{"name":"https://github.com/mercurius-js/mercurius/issues/677","refsource":"MISC","url":"https://github.com/mercurius-js/mercurius/issues/677"},{"name":"https://github.com/mercurius-js/mercurius/pull/678/commits/732b2f895312da8deadd7b173dcd2d141d54b223","refsource":"MISC","url":"https://github.com/mercurius-js/mercurius/pull/678/commits/732b2f895312da8deadd7b173dcd2d141d54b223"}]},"source":{"advisory":"GHSA-273r-rm8g-7f3x","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/mercurius-js/mercurius/security/advisories/GHSA-273r-rm8g-7f3x","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/mercurius-js/mercurius/issues/677","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/mercurius-js/mercurius/pull/678/commits/732b2f895312da8deadd7b173dcd2d141d54b223","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T04:03:08.899Z"}}]}}}