{"answers":{"affected":"2 open source packages ship an affected version, including mercurius. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-30241 in the wild and no public exploit code.","fix":"Upgrade mercurius to 16.8.0 or later.","what":"CVE-2026-30241 is a low-severity missing authorization vulnerability in mercurius-js mercurius, published on 6 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-30241 and fix it if it is affected.\n\nWhat it is: CVE-2026-30241 is a low-severity missing authorization vulnerability in mercurius-js mercurius, published on 6 Mar 2026. 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-2026-30241 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mercurius (npm): affected all versions; fixed in 16.8.0\n- mercurius (npm): affected all versions; fixed in 16.8.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-2026-30241/ (Markdown: https://insights.sbomify.com/CVE-2026-30241/index.md)","id":"CVE-2026-30241","markdown":"https://insights.sbomify.com/CVE-2026-30241/index.md","name":"CVE-2026-30241","record":{"aliases":["GHSA-m4h2-mjfm-mp55"],"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":"Remote attackers can bypass query depth limits on WebSocket subscriptions, causing denial of service via resource exhaustion.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mercurius","vendor":"mercurius_project"}],"cvss":{"score":2.7,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U","version":"4.0"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"description":"Mercurius is a GraphQL adapter for Fastify. Prior to version 16.8.0, Mercurius fails to enforce the configured queryDepth limit on GraphQL subscription queries received over WebSocket connections. The depth check is correctly applied to HTTP queries and mutations, but subscription queries are parsed and executed without invoking the depth validation. This allows a remote client to submit arbitrarily deeply nested subscription queries over WebSocket, bypassing the intended depth restriction. On schemas with recursive types, this can lead to denial of service through exponential data resolution on each subscription event. This issue has been patched in version 16.8.0.","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":"Mercurius: queryDepth limit bypassed for WebSocket subscriptions","id":"CVE-2026-30241","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Plane: SSRF via Incomplete IP Validation in Webhook URL Serializer","id":"CVE-2026-30242"},"packages":[{"ecosystem":"npm","fixed":["16.8.0"],"introduced":["0"],"last_affected":[],"package":"mercurius","purl":null,"source":"GHSA-m4h2-mjfm-mp55"},{"ecosystem":"npm","fixed":["16.8.0"],"introduced":["0"],"last_affected":[],"package":"mercurius","purl":"pkg:npm/mercurius","source":"GHSA-m4h2-mjfm-mp55"}],"prev":{"headline":"Budibase PWA ZIP Upload Path Traversal Allows Reading Arbitrary Server Files Including All Environment Secrets","id":"CVE-2026-30240"},"products":["mercurius"],"published":"2026-03-06","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":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"}],"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-09","vendors":["mercurius-js"]},"summary":"Remote attackers can bypass query depth limits on WebSocket subscriptions, causing denial of service via resource exhaustion.","url":"https://insights.sbomify.com/CVE-2026-30241/"}