CVE-2021-38497 Cross-site scripting in Firefox
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.
Other vulnerabilities in Mozilla Firefox
Sources
Also known as GHSA-qmc5-2jh2-rpcw, UBUNTU-CVE-2021-38497.