# DRUPAL-CONTRIB-2023-051: The GraphQL module enables you to build GraphQL APIs which can include data fetching through Queries and data updates (create, update, dele…

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-11-08T15:33:12.000Z
- Modified: 2026-09-10T03:45:41.090Z

## Description

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).

(As written by Drupal Security Team.)

## Affected

- drupal/graphql (Packagist:https://packages.drupal.org/8): before 3.4.0; from 4.0.0 before 4.6.0

## References

- <https://www.drupal.org/sa-contrib-2023-051> (web)

## Sources

- Drupal Security Team: [DRUPAL-CONTRIB-2023-051](https://osv.dev/vulnerability/DRUPAL-CONTRIB-2023-051), MIT, modified 2026-09-10

---

Page: https://cve.day/DRUPAL-CONTRIB-2023-051 · Whole record: https://cve.day/DRUPAL-CONTRIB-2023-051.json · Rebuilt by cve.day 2026-11-25T22:56:30.153Z
