drupal/graphql - SA-CONTRIB-2023-051
The GraphQL module enables you to build GraphQL APIs which can include data fetching through Queries and data updates (create, update, delete) through mutations.
The module does not sufficiently validate incoming requests that are made from domains other than the one serving the GraphQL endpoint. In case a user visits a malicious site, that site may make requests on the users behalf which can lead to the execution of mutations, exposing a CSRF vulnerability. Whether data is returned to the malicious site depends on your sites CORS configuration.
This vulnerability is mitigated by the fact that a user with access to the API must have an active session cookie while visiting a malicious site. This vulnerability is also mitigated by restricting session cookies with the SameSite attribute (see solution below).
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/graphql | < 3.4.0, >= 4.0.0, < 4.6.0 | 3.4.0, 4.6.0 |
| Drupal module | drupal/graphql | < 3.4.0, >= 4.0.0, < 4.6.0 | 3.4.0, 4.6.0 |
References
- Weakness (CWE)
-- Platform
- Composer, Drupal
- Package
drupal/graphql- Disclosed
- 08.11.2023
- Updated
- 11.10.2026 12:18
Sources and licenses
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2023-051 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/graphql
All published vulnerabilities of this package (Drupal module), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 4
- First → latest
- 06.2021 11.2023
- Without a fix
- 1
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- Unrated 3
Disclosures per year
- 2021: 2
- 2022: 0
- 2023: 2
- 2024: 0
- 2025: 0
- 2026: 0
-
drupal/graphql - SA-CONTRIB-2023-051 this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.