Drupal core - SA-CORE-2021-006
The Drupal core Media module allows embedding internal and external media in content fields. In certain circumstances, the filter could allow an unprivileged user to inject HTML into a page when it is accessed by a trusted user with permission to embed media. In some cases, this could lead to cross-site scripting.
This advisory is not covered by Drupal Steward.
Also see Entity Embed - Moderately critical - Cross Site Request Forgery - SA-CONTRIB-2021-028 which addresses a similar vulnerability for that module.
Updated 18:15 UTC to clarify text.
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/entity_embed | < 1.2.0 | 1.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/entity_embed | < 1.2.0 | 1.2.0 |
References
- Weakness (CWE)
-- Platform
- Composer, Drupal
- Package
drupal/core, drupal/entity_embed- Disclosed
- 15.09.2021
- Updated
- 11.10.2026 13:17
Sources and licenses
OSV / GitHub Advisory Database - DRUPAL-CORE-2021-006 - CC BY-SA 2.0; code GPL-2.0-or-later
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2021-028 - 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-006 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.