CVE-2019-5444 Path Traversal in serve-here.js

Medium 5.3 Published Updated

Attackers can list files in arbitrary folders via path traversal in the serve-here.js npm module, exposing directory structures.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-5444?

CVE-2019-5444 is a medium-severity path traversal vulnerability in serve-here.js npm module, published on 10 Jul 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Path traversal vulnerability in version up to v1.1.3 in serve-here.js npm module allows attackers to list any file in arbitrary folder.

Weakness: CWE-22

Which versions are affected by CVE-2019-5444?

2 open source packages ship an affected version, including serve-here.js. It affects 1 product.

PackageAffectedFixed in
serve-here.js npmAll versions1.2.0
serve-here.js npmAll versions1.2.0

Products include Serve-Here.js Project Serve-Here.js.

How do I fix CVE-2019-5444?

Upgrade serve-here.js to 1.2.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2019-5444 being exploited?

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

Sources

Also known as GHSA-4448-rc82-fcr7.

Is CVE-2019-5444 in your software?

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

Check your SBOMs for free