CVE-2019-5457 Cross-Site Scripting in min-http-server

Medium 5.4 Published Updated

An attacker with file system access can inject JavaScript into min-http-server responses, executing code 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-5457?

CVE-2019-5457 is a medium-severity cross-site scripting vulnerability in min-http-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 min-http-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-5457?

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

PackageAffectedFixed in
min-http-server npmAll versions to 1.0.6None
min-http-server npmAll versions to 1.0.6None

Products include Min-Http-Server Project Min-Http-Server.

How do I fix CVE-2019-5457?

No fix has been published for CVE-2019-5457 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-5457 being exploited?

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

Sources

Also known as GHSA-j657-59rv-qwm6.

Is CVE-2019-5457 in your software?

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

Check your SBOMs for free