CVE-2022-25931 Directory Traversal

High 7.5 Published Updated

Attackers can read arbitrary files from the server due to missing input sanitization in the easy-static-server npm package.

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

What is CVE-2022-25931?

CVE-2022-25931 is a high-severity path traversal vulnerability in easy-static-server, published on 21 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of package easy-static-server are vulnerable to Directory Traversal due to missing input sanitization and sandboxes being employed to the req.url user input that is passed to the server code.

Weakness: CWE-22

Which versions are affected by CVE-2022-25931?

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

PackageAffectedFixed in
easy-static-server npmAll versions to 0.1.1None
easy-static-server npmAll versions to 0.1.1None

Products include Easy-Static-Server Project Easy-Static-Server.

How do I fix CVE-2022-25931?

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

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-25931 exists.

Sources

Also known as GHSA-wcwm-c3mr-pxcr.

Is CVE-2022-25931 in your software?

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

Check your SBOMs for free