{"id":"CVE-2024-47082","published":"2024-09-25T17:48:24Z","modified":"2024-09-25T18:05:24Z","title":"Strawberry GraphQL Cross-Site Request Forgery (CSRF) vulnerability","vendor":"strawberry-graphql","product":"strawberry","tier":"tail","description":{"text":"Strawberry GraphQL is a library for creating GraphQL APIs. Prior to version 0.243.0, multipart file upload support as defined in the GraphQL multipart request specification was enabled by default in all Strawberry HTTP view integrations. This made all Strawberry HTTP view integrations vulnerable to cross-site request forgery (CSRF) attacks if users did not explicitly enable CSRF preventing security mechanism for their servers. Additionally, the Django HTTP view integration, in particular, had an exemption for Django's built-in CSRF protection (i.e., the `CsrfViewMiddleware` middleware) by default. In affect, all Strawberry integrations were vulnerable to CSRF attacks by default. Version `v0.243.0` is the first `strawberry-graphql` including a patch.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00244,"percentile":0.15888,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://github.com/strawberry-graphql/strawberry/security/advisories/GHSA-79gp-q4wv-33fr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/strawberry-graphql/strawberry/commit/37265b230e511480a9ceace492f9f6a484be1387","tags":["x_refsource_MISC"]},{"url":"https://strawberry.rocks/docs/breaking-changes/0.243.0","tags":["x_refsource_MISC"]}],"priority":{"score":6.4,"factors":[{"name":"EPSS percentile","points":3.18},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"strawberry-graphql","affectedVersions":[{"vendor":"strawberry-graphql","product":"strawberry","versions":["< 0.243.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-25T18:03:32.158159Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"strawberry-graphql","vulnerableRanges":["<0.243.0"],"patched":["0.243.0"],"from":["GHSA-79gp-q4wv-33fr","PYSEC-2024-171"],"provenance":"source"}],"summary":{"text":"The Strawberry GraphQL library (product \"strawberry\", vendor strawberry-graphql) enables multipart file upload support by default in all of its HTTP view integrations, and the Django integration additionally exempts itself from Django's built-in CSRF middleware, leaving these integrations open to cross-site request forgery. An attacker can exploit this over the network with low complexity, a low-privilege account, and a victim's interaction, to submit state-changing GraphQL requests on the user's behalf, provided the server's CSRF prevention mechanism has not been explicitly enabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:03Z"},"euvd":{"id":"EUVD-2024-0208","exploited":false,"provenance":"source"}}