CVE-2018-6333 Nuclide Improper Input Validation

Critical 9.8 Published Updated

Attackers can inject HTML via malicious URLs in Nuclide, potentially leading to code execution within the editor context.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-6333?

CVE-2018-6333 is a critical cross-site scripting vulnerability in Facebook Nuclide, published on 31 Dec 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The hhvm-attach deep link handler in Nuclide did not properly sanitize the provided hostname parameter when rendering. As a result, a malicious URL could be used to render HTML and other content inside of the editor's context, which could potentially be chained to lead to code execution. This issue affected Nuclide prior to v0.290.0.

Weakness: CWE-20, CWE-79

Which versions are affected by CVE-2018-6333?

2 open source packages ship an affected version, including nuclide. It affects 1 product.

PackageAffectedFixed in
nuclide npmAll versions0.290.0
nuclide npmAll versions0.290.0

Products include Facebook Nuclide.

How do I fix CVE-2018-6333?

Upgrade nuclide to 0.290.0 or later.

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

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

Sources

Also known as GHSA-r83x-wj75-v89r.

Is CVE-2018-6333 in your software?

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

Check your SBOMs for free