Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. strawberry-graphql
  4. ›
  5. CVE-2024-47082

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

September 25, 2024 (updated January 21, 2025)

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/pypa/advisory-database/tree/main/vulns/strawberry-graphql/PYSEC-2024-171.yaml
  • 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

Code Behaviors & Features

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 →

Affected versions

All versions before 0.243.0

Fixed versions

  • 0.243.0

Solution

Upgrade to version 0.243.0 or above.

Impact 8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

pypi/strawberry-graphql/CVE-2024-47082.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:08 +0000.