CVE-2023-26126 m.static Directory Traversal vulnerability

High 7.5 Published Updated

Attackers can read arbitrary files from the server due to improper input sanitization in the m.static 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-26126?

CVE-2023-26126 is a high-severity path traversal vulnerability in m.static, published on 10 May 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 m.static are vulnerable to Directory Traversal due to improper input sanitization of the path being requested via the requestFile function.

Weakness: CWE-22

Which versions are affected by CVE-2023-26126?

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

PackageAffectedFixed in
m.static npmAll versions to 2.2.0None
m.static npmAll versions to 2.2.0None

Products include M.static Project M.static.

How do I fix CVE-2023-26126?

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

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

Sources

Also known as GHSA-vcxh-qvgr-9fw9.

Is CVE-2023-26126 in your software?

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

Check your SBOMs for free