Every CVE Search/ Get API key

DRUPAL-CONTRIB-2023-051

No scoreFix available

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

What each source reports

OSV No score

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

Record
DRUPAL-CONTRIB-2023-051
Updated
2026-11-02

Affected packages

Affected packages
PackageAffectedFixed
drupal/graphql
Packagist:https://packages.drupal.org/8
before 3.4.0, 4.0.0 up to 4.6.0
3.4.04.6.0

History

History
RecordedChangedSources
first indexedOSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

DRUPAL-CONTRIB-2023-051 is a vulnerability with no CVSS score yet in drupal/graphql, published November 8, 2023. No source lists public exploit code. Fixed in drupal/graphql 3.4.0.

References

MoveEnter Open