Unrated

Drupal core - SA-CORE-2021-006

  • Disclosed: 15.09.2021
  • Updated: 11.10.2026 13:17

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.

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/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

CVSS score -
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/entity_embed

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

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.