{"answers":{"affected":"3 open source packages ship an affected version, including strawberry-graphql. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47707 exists.","fix":"Upgrade strawberry-graphql to 0.315.7 or later.","what":"CVE-2026-47707 is a medium-severity denial of service vulnerability in strawberry-graphql strawberry, published on 4 Jun 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-47707 and fix it if it is affected.\n\nWhat it is: CVE-2026-47707 is a medium-severity denial of service vulnerability in strawberry-graphql strawberry, published on 4 Jun 2026. 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-2026-47707 exists.\n\nAffected packages and fixed versions:\n- strawberry-graphql (PyPI): affected from 0.172.0; fixed in 0.315.7\n- strawberry-graphql (PyPI): affected from 0.172.0; fixed in 0.315.7\n- strawberry-graphql (PyPI): affected from 0.172.0; fixed in 0.315.7\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-47707/ (Markdown: https://insights.sbomify.com/CVE-2026-47707/index.md)","id":"CVE-2026-47707","markdown":"https://insights.sbomify.com/CVE-2026-47707/index.md","name":"CVE-2026-47707","record":{"aliases":["GHSA-fr49-mhgj-crfc","PYSEC-2026-2284","ROOT-APP-PYPI-CVE-2026-47707"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python GraphQL library","requires_auth":"none","summary":"Attackers can bypass alias limits in Strawberry GraphQL via fragment spreads, causing resource exhaustion and denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"strawberry_graphql","vendor":"strawberry"}],"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-400","name":"Uncontrolled Resource Consumption"}],"description":"Strawberry GraphQL is a library for creating GraphQL APIs. In versions 0.172.0 through0.315.6, the MaxAliasesLimiter extension in Strawberry fails to account for the multiplicative/amplification effect of FragmentSpreadNode. While it correctly counts static aliases within the AST it does not consider how many times a fragments internal aliases are expanded during execution. this allows an attacker to bypass alias limits and force the server to resolve and render a significantly higher number of aliases than allowed, potentially leading to a  dos via resource exhaustion. Version 0.315.7 contains a fix for the issue.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Strawberry GraphQL's Bypass of MaxAliasesLimiter via Fragment Spreads leading to GraphQL Alias Amplification","id":"CVE-2026-47707","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper","id":"CVE-2026-47708"},"packages":[{"ecosystem":"PyPI","fixed":["0.315.7"],"introduced":["0.172.0"],"last_affected":[],"package":"strawberry-graphql","purl":null,"source":"GHSA-fr49-mhgj-crfc"},{"ecosystem":"PyPI","fixed":["0.315.7"],"introduced":["0.172.0"],"last_affected":[],"package":"strawberry-graphql","purl":"pkg:pypi/strawberry-graphql","source":"GHSA-fr49-mhgj-crfc"},{"ecosystem":"PyPI","fixed":["0.315.7"],"introduced":["0.172.0"],"last_affected":[],"package":"strawberry-graphql","purl":"pkg:pypi/strawberry-graphql","source":"PYSEC-2026-2284"}],"prev":{"headline":"Strawberry GraphQL has a Circular Fragment Reference DOS","id":"CVE-2026-47706"},"products":["strawberry"],"published":"2026-06-04","related":[{"cvss_score":7.5,"headline":"Authentication bypass in strawberry-graphql via legacy graphql-ws WebSocket subprotocol","id":"CVE-2026-35523","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":7.5,"headline":"Strawberry GraphQL affected by a Denial of Service via unbounded WebSocket subscriptions","id":"CVE-2026-35526","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":5.3,"headline":"Strawberry GraphQL has a Circular Fragment Reference DOS","id":"CVE-2026-47706","kev_date_added":null,"published":"2026-06-04"},{"cvss_score":3.1,"headline":"Strawberry GraphQL: Default GraphiQL may expose HTTP headers in URLs","id":"CVE-2026-45739","kev_date_added":null,"published":"2026-06-04"}],"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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":"2026-06-04","vendors":["strawberry-graphql"]},"summary":"Attackers can bypass alias limits in Strawberry GraphQL via fragment spreads, causing resource exhaustion and denial of service.","url":"https://insights.sbomify.com/CVE-2026-47707/"}