CVE-2022-25276 Lack of domain validation in Druple core
Attackers can execute cross-site scripting via improperly validated oEmbed iframe domains, potentially leaking cookies and compromising user accounts.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-25276?
CVE-2022-25276 is a medium-severity cross-site scripting vulnerability in Drupal Drupal, published on 26 Apr 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The Media oEmbed iframe route does not properly validate the iframe domain setting, which allows embeds to be displayed in the context of the primary domain. Under certain circumstances, this could lead to cross-site scripting, leaked cookies, or other vulnerabilities.
Weakness: CWE-79
Which versions are affected by CVE-2022-25276?
6 open source packages ship an affected version, including drupal/core and drupal. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
drupal/core Packagist | From 8.0.0 | 9.3.19, 9.4.3 |
drupal/core Packagist | From 8.0.0 | 9.3.19 |
drupal/core Packagist | From 8.0.0 | 9.3.19 |
drupal/core Packagist | From 9.4.0 | 9.4.3 |
drupal/core Packagist | From 9.4.0 | 9.4.3 |
drupal Bitnami | From 9.3.0 | 9.3.19, 9.4.3 |
Products include Drupal Drupal.
How do I fix CVE-2022-25276?
Upgrade drupal/core to a fixed version for your release line: 9.3.19 or 9.4.3.
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 CVE-2022-25276 being exploited?
There is no known exploitation of CVE-2022-25276 in the wild and no public exploit code.
Other vulnerabilities in Drupal Drupal
Sources
Also known as BIT-drupal-2022-25276, DRUPAL-CORE-2022-015, GHSA-4wfq-jc9h-vpcx, UBUNTU-CVE-2022-25276.