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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (59th 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 Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-SILVERSTRIPEGRAPHQL-550160
  • published19 Feb 2020
  • disclosed19 Feb 2020
  • creditUnknown

Introduced: 19 Feb 2020

CVE-2019-12437  (opens in a new tab)
CWE-352  (opens in a new tab)

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.

CVSS Scores

version 3.1