CVE-2022-25276 Lack of domain validation in Druple core

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
drupal/core PackagistFrom 8.0.09.3.19, 9.4.3
drupal/core PackagistFrom 8.0.09.3.19
drupal/core PackagistFrom 8.0.09.3.19
drupal/core PackagistFrom 9.4.09.4.3
drupal/core PackagistFrom 9.4.09.4.3
drupal BitnamiFrom 9.3.09.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.

All Drupal Drupal vulnerabilities

Sources

Also known as BIT-drupal-2022-25276, DRUPAL-CORE-2022-015, GHSA-4wfq-jc9h-vpcx, UBUNTU-CVE-2022-25276.

Is CVE-2022-25276 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free