LowDRUPAL-CORE-2021-006CVE-2020-13673DRUPAL-CONTRIB-2021-028

DRUPAL-CORE-2021-006 in drupal/core

Published 15 Sept 2021 · Updated 19 Sept 2026

Affected package

drupal/coreComposer
Affected
>=8.0.0 <8.9.19 · >=9.1.0 <9.1.13 · >=9.2.0 <9.2.6
Fixed in
8.9.19, 9.1.13, 9.2.6
Update to the fixed version for your release line, for example:composer require drupal/core:^9.2.6

Details

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](/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.*

Is DRUPAL-CORE-2021-006 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected drupal/core, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.