CVE-2018-3726 Cross-site Scripting (XSS) - Stored in crud-file-server
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.
| Package | Affected | Fixed in |
|---|---|---|
crud-file-server npm | All versions | 0.8.0 |
crud-file-server npm | All versions | 0.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.
Other vulnerabilities in HackerOne crud-file-server node module
Sources
Also known as GHSA-h24f-9mm4-w336.