CVE-2018-5124 Cross-site scripting in Firefox
Unsanitized output in the Firefox browser UI allows arbitrary code execution via HTML injection.
- 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-2018-5124?
CVE-2018-5124 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, published on 26 Apr 2019. 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
Unsanitized output in the browser UI leaves HTML tags in place and can result in arbitrary code execution in Firefox before version 58.0.1.
Weakness: CWE-79
Which versions are affected by CVE-2018-5124?
It affects 1 product.
Products include Mozilla Firefox.
How do I fix CVE-2018-5124?
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-2018-5124 being exploited?
There is no known exploitation of CVE-2018-5124 in the wild and no public exploit code.
Other vulnerabilities in Mozilla Firefox
Sources
Also known as GHSA-x85x-whmj-686x, UBUNTU-CVE-2018-5124, USN-3552-1.