GHSA-qjfh-xc44-rm9x Path Traversal in file-static-server

Not scored Published

Attackers can read arbitrary server files via path traversal in the file-static-server npm package due to insufficient input sanitization.

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

What is GHSA-qjfh-xc44-rm9x?

GHSA-qjfh-xc44-rm9x is a path traversal vulnerability in file-static-server, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of file-static-server are vulnerable to Path Traversal. Due to insufficient input sanitization in URLs, attackers can access server files by using relative paths when fetching files.

Recommendation

No fix is currently available. Consider using an alternative module until a fix is made available.

Which versions are affected by GHSA-qjfh-xc44-rm9x?

2 open source packages ship an affected version, including file-static-server.

PackageAffectedFixed in
file-static-server npmFrom 0.0.0None
file-static-server npmFrom 0.0.0None

How do I fix GHSA-qjfh-xc44-rm9x?

No fix has been published for GHSA-qjfh-xc44-rm9x yet. Limit exposure of the affected software until one is available.

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

Is GHSA-qjfh-xc44-rm9x being exploited?

There is no known exploitation of GHSA-qjfh-xc44-rm9x in the wild and no public exploit code.

Sources

Is GHSA-qjfh-xc44-rm9x in your software?

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

Check your SBOMs for free