CVE-2024-47082: Cross-Site Request Forgery (CSRF) in strawberry-graphql
Impact 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 CSRF attacks if users did not explicitly enable CSRF preventing security mechanism for their servers.
Published Sep 25, 2024 · Updated Jan 21, 2025
Affected packages
strawberry-graphql
- Ecosystem
- PyPI
- Affected
- < 0.243.0
- Fixed in
- 0.243.0
- Check
pip show strawberry-graphql
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
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 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.
Patches
Version v0.243.0 is the first strawberry-graphql including a patch. Check out our documentation for additional details and upgrade instructions.
References
Credits
Credited to DoctorJohn, graingert, Speedy1991.
References
- https://github.com/strawberry-graphql/strawberry/security/advisories/GHSA-79gp-q4wv-33fr
- https://github.com/strawberry-graphql/strawberry/commit/37265b230e511480a9ceace492f9f6a484be1387
- https://nvd.nist.gov/vuln/detail/CVE-2024-47082
- https://strawberry.rocks/docs/breaking-changes/0.243.0
- https://github.com/pypa/advisory-database/tree/main/vulns/strawberry-graphql/PYSEC-2024-171.yaml
- https://github.com/advisories/GHSA-79gp-q4wv-33fr
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-107727
Strawberry legacy graphql-ws retains naturally completed subscription slots
low3.7Oct 9, 2026CVE-2026-107728
Strawberry GraphQL: Synchronous permission checks can treat an awaitable authorization result as truthy
high7.5Oct 9, 2026CVE-2026-47706
Strawberry GraphQL has a Circular Fragment Reference DOS
medium5.3Jun 4, 2026CVE-2026-47707
Strawberry GraphQL's Bypass of MaxAliasesLimiter via Fragment Spreads leading to GraphQL Alias Amplification
medium5.3Jun 4, 2026CVE-2026-45739
Strawberry GraphQL: Default GraphiQL may expose HTTP headers in URLs
low3.1May 19, 2026CVE-2026-35523
strawberry-graphql: Authentication bypass via legacy graphql-ws WebSocket subprotocol
high7.5Apr 6, 2026
