CVE-2018-3726 Cross-site Scripting (XSS) - Stored in crud-file-server

Medium 6.1 Published Updated

An attacker can execute arbitrary scripts in the victim's browser via malicious file names in the crud-file-server Node.js module.

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

CVE-2018-3726 is a medium-severity cross-site scripting vulnerability in HackerOne crud-file-server node module, published on 7 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

crud-file-server node module before 0.8.0 suffers from a Cross-Site Scripting vulnerability to a lack of validation of file names.

Weakness: CWE-79

Which versions are affected by CVE-2018-3726?

2 open source packages ship an affected version, including crud-file-server. It affects 1 product.

PackageAffectedFixed in
crud-file-server npmAll versions0.8.0
crud-file-server npmAll versions0.8.0

Products include Crud-File-Server Project Crud-File-Server.

How do I fix CVE-2018-3726?

Upgrade crud-file-server to 0.8.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-3726 being exploited?

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

Sources

Also known as GHSA-h24f-9mm4-w336.

Is CVE-2018-3726 in your software?

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

Check your SBOMs for free