CVE-2023-26152 static-server Path Traversal vulnerability

High 7.5 Published Updated

An attacker can read arbitrary files from the server due to improper input sanitization in the 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-2023-26152?

CVE-2023-26152 is a high-severity path traversal vulnerability in static-server, published on 3 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of the package static-server are vulnerable to Directory Traversal due to improper input sanitization passed via the validPath function of server.js.

Weakness: CWE-22

Which versions are affected by CVE-2023-26152?

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

PackageAffectedFixed in
static-server npmAll versions to 2.2.1None
static-server npmAll versions to 2.2.1None

Products include Nbluis Static-Server.

How do I fix CVE-2023-26152?

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

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

Sources

Also known as GHSA-v834-rhv4-65m3.

Is CVE-2023-26152 in your software?

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

Check your SBOMs for free