Cross-site Request Forgery (CSRF) Affecting silverstripe/graphql package, versions >=3.0.0, <3.1.0 >=2.0.0, <2.0.5


0.0
medium

Snyk CVSS

    Attack Complexity High
    User Interaction Required
    Integrity High
    Availability High

    Threat Intelligence

    EPSS 0.2% (58th percentile)
Expand this section
NVD
8.8 high

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-PHP-SILVERSTRIPEGRAPHQL-550160
  • published 19 Feb 2020
  • disclosed 19 Feb 2020
  • credit Unknown

How to fix?

Upgrade silverstripe/graphql to version 3.1.0, 2.0.5 or higher.

Overview

silverstripe/graphql is a GraphQL server for SilverStripe models and other data.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF). The code change that implements Cross Site Request Forgery (CSRF) protection on GraphQL mutation queries does not adequately protect users against CSRF attacks on GraphQL endpoints. A GraphQL query formed with a fragment portion before the mutation would bypass the check for determining whether the query is a mutation and therefore the X-CSRF-TOKEN HTTP header is not required to be supplied with the HTTP request.