{"answers":{"affected":"4 open source packages ship an affected version, including mercurius. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-22477 exists.","fix":"Upgrade mercurius to a fixed version for your release line: 8.13.2 or 11.5.0.","what":"CVE-2023-22477 is a medium-severity denial of service vulnerability in mercurius-js mercurius, published on 9 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-22477 and fix it if it is affected.\n\nWhat it is: CVE-2023-22477 is a medium-severity denial of service vulnerability in mercurius-js mercurius, published on 9 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-22477 exists.\n\nAffected packages and fixed versions:\n- mercurius (npm): affected all versions; fixed in 8.13.2\n- mercurius (npm): affected all versions; fixed in 8.13.2\n- mercurius (npm): affected from 9.0.0; fixed in 11.5.0\n- mercurius (npm): affected from 9.0.0; fixed in 11.5.0\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-2023-22477/ (Markdown: https://insights.sbomify.com/CVE-2023-22477/index.md)","id":"CVE-2023-22477","markdown":"https://insights.sbomify.com/CVE-2023-22477/index.md","name":"CVE-2023-22477","record":{"aliases":["GHSA-cm8h-q92v-xcfc"],"analysis":{"component_type":"library","fix_type":"patch","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 WebSocket packets to the subscription endpoint.","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":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-248","name":"Uncaught Exception"}],"description":"Mercurius is a GraphQL adapter for Fastify. Any users of Mercurius until version 10.5.0 are subjected to a denial of service attack by sending a malformed packet over WebSocket to `/graphql`. This issue was patched in #940. As a workaround, users can disable subscriptions.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Mercurius is vulnerable to denial of service (DoS) when using subscriptions","id":"CVE-2023-22477","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2023"},"n_packages":4,"n_references":3,"next":{"headline":"KubePi is vulnerable to missing authorization","id":"CVE-2023-22478"},"packages":[{"ecosystem":"npm","fixed":["8.13.2"],"introduced":["0"],"last_affected":[],"package":"mercurius","purl":null,"source":"GHSA-cm8h-q92v-xcfc"},{"ecosystem":"npm","fixed":["8.13.2"],"introduced":["0"],"last_affected":[],"package":"mercurius","purl":"pkg:npm/mercurius","source":"GHSA-cm8h-q92v-xcfc"},{"ecosystem":"npm","fixed":["11.5.0"],"introduced":["9.0.0"],"last_affected":[],"package":"mercurius","purl":null,"source":"GHSA-cm8h-q92v-xcfc"},{"ecosystem":"npm","fixed":["11.5.0"],"introduced":["9.0.0"],"last_affected":[],"package":"mercurius","purl":"pkg:npm/mercurius","source":"GHSA-cm8h-q92v-xcfc"}],"prev":{"headline":"MantisBT: Exposure of Private issues' summary to unauthorized users","id":"CVE-2023-22476"},"products":["mercurius"],"published":"2023-01-09","related":[{"cvss_score":7.5,"headline":"Uncaught Exception in mercurius","id":"CVE-2021-43801","kev_date_added":null,"published":"2021-12-13"},{"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":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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-10","vendors":["mercurius-js"]},"summary":"Attackers can cause denial of service in Mercurius GraphQL adapter by sending malformed WebSocket packets to the subscription endpoint.","url":"https://insights.sbomify.com/CVE-2023-22477/"}