Drupal core - SA-CORE-2021-008
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:
- The JSON:API or REST File upload modules must be enabled on the site.
- An attacker must have access to a file upload via JSON:API or REST.
- 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.
| Platform | Package | Vulnerable versions | Fixed 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 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/core
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
- 146
- First → latest
- 02.2018 09.2026
- Without a fix
- 3
- Exploited in attacks
- 5
Severity breakdown
- Critical 15
- High 40
- Medium 60
- Low 5
- Unrated 26
Disclosures per year
- 2018: 4
- 2019: 14
- 2020: 12
- 2021: 11
- 2022: 55
- 2023: 6
- 2024: 23
- 2025: 8
- 2026: 13
-
Drupal core - SA-CORE-2021-008 this entry
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.