{"answers":{"affected":"2 open source packages ship an affected version, including mercurius. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-43801 in the wild and no public exploit code.","fix":"Upgrade mercurius to 8.11.2 or later.","what":"CVE-2021-43801 is a high-severity denial of service vulnerability in mercurius-js mercurius, published on 13 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-43801 and fix it if it is affected.\n\nWhat it is: CVE-2021-43801 is a high-severity denial of service vulnerability in mercurius-js mercurius, published on 13 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-43801 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mercurius (npm): affected from 8.10.0; fixed in 8.11.2\n- mercurius (npm): affected from 8.10.0; fixed in 8.11.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-43801/ (Markdown: https://insights.sbomify.com/CVE-2021-43801/index.md)","id":"CVE-2021-43801","markdown":"https://insights.sbomify.com/CVE-2021-43801/index.md","name":"CVE-2021-43801","record":{"aliases":["GHSA-273r-rm8g-7f3x"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"GraphQL adapter library","requires_auth":"none","summary":"Attackers can cause denial of service in Mercurius GraphQL adapter by sending malformed JSON, unless a custom error handler is configured.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mercurius","vendor":"mercurius_project"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Uncaught Exception in mercurius","id":"CVE-2021-43801","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2021"},"n_packages":2,"n_references":3,"next":{"headline":"Admin privilege escalation and arbitrary code execution via malicious *.etherpad imports","id":"CVE-2021-43802"},"packages":[{"ecosystem":"npm","fixed":["8.11.2"],"introduced":["8.10.0"],"last_affected":[],"package":"mercurius","purl":null,"source":"GHSA-273r-rm8g-7f3x"},{"ecosystem":"npm","fixed":["8.11.2"],"introduced":["8.10.0"],"last_affected":[],"package":"mercurius","purl":"pkg:npm/mercurius","source":"GHSA-273r-rm8g-7f3x"}],"prev":{"headline":"Asset directory traversal with some storage modules on Windows","id":"CVE-2021-43800"},"products":["mercurius"],"published":"2021-12-13","related":[{"cvss_score":5.4,"headline":"Mercurius: Incorrect Content-Type parsing can lead to CSRF attack","id":"CVE-2025-64166","kev_date_added":null,"published":"2026-03-05"},{"cvss_score":5.3,"headline":"Mercurius is vulnerable to denial of service (DoS) when using subscriptions","id":"CVE-2023-22477","kev_date_added":null,"published":"2023-01-09"},{"cvss_score":2.7,"headline":"Mercurius: queryDepth limit bypassed for WebSocket subscriptions","id":"CVE-2026-30241","kev_date_added":null,"published":"2026-03-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["mercurius-js"]},"summary":"Attackers can cause denial of service in Mercurius GraphQL adapter by sending malformed JSON, unless a custom error handler is configured.","url":"https://insights.sbomify.com/CVE-2021-43801/"}