CVE-2021-38509 Cross-site scripting in Firefox

Medium 4.3 Published Updated

Attackers can display arbitrary JavaScript alert dialogs over uncontrolled webpages in Firefox, potentially misleading users about the current site context.

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-38509?

CVE-2021-38509 is a medium-severity cross-site scripting vulnerability in Debian Debian Linux, published on 8 Dec 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

Due to an unusual sequence of attacker-controlled events, a Javascript alert() dialog with arbitrary (although unstyled) contents could be displayed over top an uncontrolled webpage of the attacker's choosing. This vulnerability affects Firefox < 94, Thunderbird < 91.3, and Firefox ESR < 91.3.

Weakness: CWE-1021

Which versions are affected by CVE-2021-38509?

It affects 4 products.

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

How do I fix CVE-2021-38509?

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-38509 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-38509, GHSA-hw7m-5984-jp2q, UBUNTU-CVE-2021-38509.

Is CVE-2021-38509 in your software?

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

Check your SBOMs for free