Cross-Site Request Forgery (CSRF) Affecting strawberry-graphql package, versions [,0.243.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.06% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-STRAWBERRYGRAPHQL-8097218
  • published 26 Sep 2024
  • disclosed 25 Sep 2024
  • credit Speedy1991,Thomas Grainger

How to fix?

Upgrade strawberry-graphql to version 0.243.0 or higher.

Overview

strawberry-graphql is an A library for creating GraphQL APIs

Affected versions of this package are vulnerable to Cross-Site Request Forgery (CSRF) due to the default settings of exemption from Django's CsrfViewMiddleware protection and support for multipart file uploads, in all integrations.

Note: After the fix, clients need to send CSRF tokens with every request.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
5.1 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    Passive
  • Confidentiality (VC)
    None
  • Integrity (VI)
    Low
  • Availability (VA)
    Low
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None