Cross-site Request Forgery (CSRF) Affecting silverstripe/graphql package, versions >=3.0.0, <3.1.0 >=2.0.0, <2.0.5
Snyk CVSS
Threat Intelligence
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
Introduced: 19 Feb 2020
CVE-2019-12437 Open this link in a new tabHow 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.