GHSA-cgjv-rghq-qhgp Path Traversal in algo-httpserv

Not scored Published

Attackers can read arbitrary server files via path traversal in the algo-httpserv library 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
Available

What is GHSA-cgjv-rghq-qhgp?

GHSA-cgjv-rghq-qhgp is a path traversal vulnerability in algo-httpserv, published on 11 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of algo-httpserv prior to 1.1.2 are vulnerable to Path Traversal. Due to insufficient input sanitization, attackers can access server files by using relative paths.

Recommendation

Upgrade to version 1.1.2 or later.

Which versions are affected by GHSA-cgjv-rghq-qhgp?

2 open source packages ship an affected version, including algo-httpserv.

PackageAffectedFixed in
algo-httpserv npmAll versions1.1.2
algo-httpserv npmAll versions1.1.2

How do I fix GHSA-cgjv-rghq-qhgp?

Upgrade algo-httpserv to 1.1.2 or later.

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

Is GHSA-cgjv-rghq-qhgp being exploited?

There is no known exploitation of GHSA-cgjv-rghq-qhgp in the wild and no public exploit code.

Sources

Is GHSA-cgjv-rghq-qhgp in your software?

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

Check your SBOMs for free