CVE-2024-47082: Cross-Site Request Forgery (CSRF) in strawberry-graphql
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.
References
- github.com/advisories/GHSA-79gp-q4wv-33fr
- github.com/strawberry-graphql/strawberry
- github.com/strawberry-graphql/strawberry/commit/37265b230e511480a9ceace492f9f6a484be1387
- github.com/strawberry-graphql/strawberry/security/advisories/GHSA-79gp-q4wv-33fr
- nvd.nist.gov/vuln/detail/CVE-2024-47082
- strawberry.rocks/docs/breaking-changes/0.243.0
Detect and mitigate CVE-2024-47082 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →