CVE-2019-5458 Cross-Site Scripting in http-file-server
An attacker with file system access can inject JavaScript into the HTTP file server, leading to arbitrary code execution in victims' browsers.
- 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
- None listed
What is CVE-2019-5458?
CVE-2019-5458 is a medium-severity cross-site scripting vulnerability in http-file-server, published on 30 Jul 2019. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Cross-site scripting (XSS) vulnerability in http-file-server (all versions) allows an attacker with access to the server file system to execute arbitrary JavaScript code in victim's browser.
Weakness: CWE-79
Which versions are affected by CVE-2019-5458?
2 open source packages ship an affected version, including http-file-server. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
http-file-server npm | All versions to 0.2.6 | None |
http-file-server npm | All versions to 0.2.6 | None |
Products include Http-File-Server Project Http-File-Server.
How do I fix CVE-2019-5458?
No fix has been published for CVE-2019-5458 yet. Limit exposure of the affected software until one is available.
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-2019-5458 being exploited?
There is no known exploitation of CVE-2019-5458 in the wild and no public exploit code.
Other vulnerabilities in http-file-server
Sources
Also known as GHSA-7j93-2h6r-hm49.