Vulnerability · Published Dec 13, 2021 · Assigned by GitHub_M

CVE-2021-43801Uncaught Exception in mercurius

High 7.5

In plain English

A high-severity security flaw in mercurius from mercurius-js. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.6%top 24.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmmercurius8.11.2GHSA-273r-rm8g-7f3x

Affected products (as reported)

VendorProductVersions
mercurius-js mercurius >= 8.10.0, < 8.11.2

Weakness: CWE-754 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References