DRUPAL-CONTRIB-2022-042 The Drupal Embed module provides a filter to allow embedding various embeddable items like entities in content fields.
An unprivileged user can inject HTML leading to Cross-Site Request Forgery when a trusted user views the content.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is DRUPAL-CONTRIB-2022-042?
DRUPAL-CONTRIB-2022-042 is a cross-site scripting vulnerability in drupal/embed, published on 25 May 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
The Drupal Embed module provides a filter to allow embedding various embeddable items like entities 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 items. In some cases, this could lead to Cross-Site Request Forgery.
Which versions are affected by DRUPAL-CONTRIB-2022-042?
Linux distribution packages (1)
drupal/embed Packagist:https://packages.drupal.org/8 | All versions | 1.5.0 |
How do I fix DRUPAL-CONTRIB-2022-042?
Upgrade to a fixed version.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is DRUPAL-CONTRIB-2022-042 being exploited?
There is no known exploitation of DRUPAL-CONTRIB-2022-042 in the wild and no public exploit code.