Unrated

drupal/graphql - SA-CONTRIB-2023-051

  • Disclosed: 08.11.2023
  • Updated: 11.10.2026 12:18

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.

PlatformPackageVulnerable versionsFixed 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

CVSS score -
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 (Composer package), 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

  1. 2021: 2
  2. 2022: 0
  3. 2023: 2
  4. 2024: 0
  5. 2025: 0
  6. 2026: 0
  1. drupal/graphql - SA-CONTRIB-2023-051 this entry
    Unrated drupal-contrib-2023-051 < 3.4.0, >= 4.0.0, < 4.6.0 3.4.0, 4.6.0
  2. Unrated drupal-contrib-2023-050 < 3.4.0, >= 4.0.0, < 4.6.0 3.4.0, 4.6.0
  3. Critical · 9.8 CVE-2020-13675 >= 4.0.0, < 4.2.0 4.2.0
  4. Unrated drupal-contrib-2021-013 = 4.0.0 no fix

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.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.