CVE-2021-38497 Cross-site scripting in Firefox

Medium 6.5 Published Updated

Attackers can overlay plain-text validation messages on other origins via reportValidity and window.open, enabling user confusion and spoofing attacks in Firefox and Thunderbird.

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-2021-38497?

CVE-2021-38497 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, published on 3 Nov 2021. 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

Through use of reportValidity() and window.open(), a plain-text validation message could have been overlaid on another origin, leading to possible user confusion and spoofing attacks. This vulnerability affects Firefox < 93, Thunderbird < 91.2, and Firefox ESR < 91.2.

Weakness: CWE-346

Which versions are affected by CVE-2021-38497?

It affects 3 products.

Products include Mozilla Firefox, Mozilla Firefox Esr, Mozilla Thunderbird.

How do I fix CVE-2021-38497?

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 CVE-2021-38497 being exploited?

There is no known exploitation of CVE-2021-38497 in the wild and no public exploit code.

All Mozilla Firefox vulnerabilities

Sources

Also known as GHSA-qmc5-2jh2-rpcw, UBUNTU-CVE-2021-38497.

Is CVE-2021-38497 in your software?

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

Check your SBOMs for free