CVE-2019-17022 Cross-site scripting in Firefox
Insufficient escaping in Firefox's CSS sanitizer allows XSS when pasting style tags into rich text editors that manipulate innerHTML.
- 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-2019-17022?
CVE-2019-17022 is a medium-severity cross-site scripting vulnerability in Canonical Ubuntu Linux, published on 8 Jan 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
When pasting a <style> tag from the clipboard into a rich text editor, the CSS sanitizer does not escape < and > characters. Because the resulting string is pasted directly into the text node of the element this does not result in a direct injection into the webpage; however, if a webpage subsequently copies the node's innerHTML, assigning it to another innerHTML, this would result in an XSS vulnerability. Two WYSIWYG editors were identified with this behavior, more may exist. This vulnerability affects Firefox ESR < 68.4 and Firefox < 72.
Weakness: CWE-79
Which versions are affected by CVE-2019-17022?
It affects 9 products.
Products include Canonical Ubuntu Linux, Debian Debian Linux, Mozilla Firefox, Mozilla Firefox Esr, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server and 3 more.
How do I fix CVE-2019-17022?
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-2019-17022 being exploited?
There is no known exploitation of CVE-2019-17022 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as DEBIAN-CVE-2019-17022, GHSA-wgfq-5c99-wv2w, UBUNTU-CVE-2019-17022.