CVE-2018-5143 Cross-site scripting in Firefox

Medium 6.1 Published Updated

Attackers can execute scripts via crafted URLs with embedded tabs, bypassing XSS protections in the address bar.

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

CVE-2018-5143 is a medium-severity cross-site scripting vulnerability in Canonical Ubuntu Linux, published on 11 Jun 2018. 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

URLs using "javascript:" have the protocol removed when pasted into the addressbar to protect users from cross-site scripting (XSS) attacks, but if a tab character is embedded in the "javascript:" URL the protocol is not removed and the script will execute. This could allow users to be socially engineered to run an XSS attack against themselves. This vulnerability affects Firefox < 59.

Weakness: CWE-79

Which versions are affected by CVE-2018-5143?

It affects 2 products.

Products include Canonical Ubuntu Linux, Mozilla Firefox.

How do I fix CVE-2018-5143?

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

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as GHSA-qqw6-4m7h-4hwr, UBUNTU-CVE-2018-5143.

Is CVE-2018-5143 in your software?

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

Check your SBOMs for free