GHSA-wfhx-6pcm-7m55 Path Traversal in ponse

Not scored Published

Attackers can read arbitrary server files outside the served directory due to unsanitized URL handling in the ponse library.

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

What is GHSA-wfhx-6pcm-7m55?

GHSA-wfhx-6pcm-7m55 is a path traversal vulnerability in ponse, published on 3 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of ponse prior to 2.0.2 are vulnerable to Path Traversal. The package fails to sanitize URLs, allowing attackers to access server files outside of the served folder using relative paths.

Recommendation

Upgrade to version 2.0.2 or later.

Which versions are affected by GHSA-wfhx-6pcm-7m55?

2 open source packages ship an affected version, including ponse.

PackageAffectedFixed in
ponse npmAll versions2.0.2
ponse npmAll versions2.0.2

How do I fix GHSA-wfhx-6pcm-7m55?

Upgrade ponse to 2.0.2 or later.

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

Is GHSA-wfhx-6pcm-7m55 being exploited?

There is no known exploitation of GHSA-wfhx-6pcm-7m55 in the wild and no public exploit code.

Sources

Is GHSA-wfhx-6pcm-7m55 in your software?

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

Check your SBOMs for free