CVE-2017-7839 Cross-site scripting in Firefox

Medium 6.1 Published Updated

Attackers can execute JavaScript via crafted address bar pastes, enabling self-XSS and social engineering attacks in Firefox.

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-2017-7839?

CVE-2017-7839 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, 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

Control characters prepended before "javascript:" URLs pasted in the addressbar can cause the leading characters to be ignored and the pasted JavaScript to be executed instead of being blocked. This could be used in social engineering and self-cross-site-scripting (self-XSS) attacks where users are convinced to copy and paste text into the addressbar. This vulnerability affects Firefox < 57.

Weakness: CWE-79

Which versions are affected by CVE-2017-7839?

It affects 1 product.

Products include Mozilla Firefox.

How do I fix CVE-2017-7839?

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-2017-7839 being exploited?

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

All Mozilla Firefox vulnerabilities

Sources

Also known as GHSA-42vq-2prv-qxmf, UBUNTU-CVE-2017-7839.

Is CVE-2017-7839 in your software?

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

Check your SBOMs for free