NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2024-47082: Cross-Site Request Forgery (CSRF) in strawberry-graphql

mediumCVSS 4.0 4.8 · 3.1 4.6GHSA-79gp-q4wv-33fr

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

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 entries