CVE-2020-26958 Cross-site scripting in Firefox
Attackers can execute malicious scripts or bypass Content Security Policy in Firefox via ServiceWorker MIME type handling flaws.
- 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-2020-26958?
CVE-2020-26958 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, published on 9 Dec 2020. 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
Firefox did not block execution of scripts with incorrect MIME types when the response was intercepted and cached through a ServiceWorker. This could lead to a cross-site script inclusion vulnerability, or a Content Security Policy bypass. This vulnerability affects Firefox < 83, Firefox ESR < 78.5, and Thunderbird < 78.5.
Weakness: CWE-79
Which versions are affected by CVE-2020-26958?
It affects 3 products.
Products include Mozilla Firefox, Mozilla Firefox Esr, Mozilla Thunderbird.
How do I fix CVE-2020-26958?
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-2020-26958 being exploited?
There is no known exploitation of CVE-2020-26958 in the wild and no public exploit code.
Other vulnerabilities in Mozilla Firefox
Sources
Also known as DEBIAN-CVE-2020-26958, GHSA-3qgm-cw58-7h2p, UBUNTU-CVE-2020-26958.