Critical

Drupal core - SA-CORE-2021-008

  • Disclosed: 15.09.2021
  • Updated: 11.10.2026 13:17

Drupal's JSON:API and REST/File modules allow file uploads through their HTTP APIs. The modules do 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 three factors:

  1. The JSON:API or REST File upload modules must be enabled on the site.
  2. An attacker must have access to a file upload via JSON:API or REST.
  3. The site must employ a file validation module.

This advisory is not covered by Drupal Steward.

Also see GraphQL - Moderately critical - Access bypass - SA-CONTRIB-2021-029 which addresses a similar vulnerability for that module.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package drupal/core >= 8.0.0, < 8.9.19, >= 9.1.0, < 9.1.13, >= 9.2.0, < 9.2.6 8.9.19, 9.1.13, 9.2.6
Composer package drupal/graphql >= 4.0.0, < 4.2.0 4.2.0
Drupal (core) drupal/core >= 8.0.0, < 8.9.19, >= 9.1.0, < 9.1.13, >= 9.2.0, < 9.2.6 8.9.19, 9.1.13, 9.2.6
Drupal module drupal/graphql >= 4.0.0, < 4.2.0 4.2.0

References

CVSS score 9.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-284, CWE-434
Platform
Composer, Drupal
Package
drupal/core, drupal/graphql
Disclosed
15.09.2021
Updated
11.10.2026 13:17

Sources and licenses

OSV / GitHub Advisory Database - GHSA-v8wr-r69p-mmwx - CC BY 4.0

OSV / GitHub Advisory Database - DRUPAL-CORE-2021-008 - CC BY-SA 2.0; code GPL-2.0-or-later

OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2021-029 - 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

  1. 2021: 2
  2. 2022: 0
  3. 2023: 2
  4. 2024: 0
  5. 2025: 0
  6. 2026: 0
  1. 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. Drupal core - SA-CORE-2021-008 this entry
    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.