DRUPAL-CONTRIB-2021-029

See a problem?
Import Source
https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/graphql/DRUPAL-CONTRIB-2021-029.json
JSON Data
https://api.test.osv.dev/v1/vulns/DRUPAL-CONTRIB-2021-029
Aliases
Published
2021-09-15T15:30:15Z
Modified
2025-12-09T03:15:03.461200Z
Summary
[none]
Details

This advisory addresses a similar issue to Drupal core - Moderately critical - Access bypass - SA-CORE-2021-008.

The GraphQL module allows file uploads through its HTTP API. The module does not correctly run all file validation, which causes an access bypass vulnerability. An attacker might be able to upload files that bypass the file validation process implemented by modules on the site.

This vulnerability is mitigated by four factors:

  1. The GraphQL module must be enabled on the site.
  2. The GraphQL schema must expose a file upload by using the helper "src/GraphQL/Utility/FileUpload.php" in the module.
  3. An attacker must have access to that file upload via the GraphQL API.
  4. The site must employ a file validation module.
References
Credits

Affected packages

Packagist:https://packages.drupal.org/8 / drupal/graphql

Package

Name
drupal/graphql
Purl
pkg:composer/drupal/graphql

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.0.0
Fixed
4.2.0
Database specific
{
    "constraint": ">=4.0.0 <4.2.0"
}

Database specific

affected_versions

">=4.0.0 <4.2.0"

source

"https://github.com/DrupalSecurityTeam/drupal-advisory-database/blob/main/advisories/graphql/DRUPAL-CONTRIB-2021-029.json"