CVE-2018-3717 Cross-Site Scripting in connect

Medium 5.4 Published Updated

An XSS vulnerability in the connect Node.js module allows attackers to inject malicious scripts via unvalidated file inputs in the directory middleware.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-3717?

CVE-2018-3717 is a medium-severity cross-site scripting vulnerability in HackerOne connect node module, published on 7 Jun 2018. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

connect node module before 2.14.0 suffers from a Cross-Site Scripting (XSS) vulnerability due to a lack of validation of file in directory.js middleware.

Weakness: CWE-79

Which versions are affected by CVE-2018-3717?

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

PackageAffectedFixed in
connect npmAll versions2.14.0
connect npmAll versions2.14.0

Products include Sencha Connect.

How do I fix CVE-2018-3717?

Upgrade connect to 2.14.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-3717 being exploited?

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

Sources

Also known as CLSA-2026-1784596288, DEBIAN-CVE-2018-3717, GHSA-rch9-xh7r-mqgw.

Is CVE-2018-3717 in your software?

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

Check your SBOMs for free