CVE-2022-21192 Directory Traversal vulnerability in serve-lite

High 7.5 Published Updated

Attackers can read arbitrary files from the server due to unsanitized URL input in the serve-lite 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-21192?

CVE-2022-21192 is a high-severity path traversal vulnerability in serve-lite, published on 25 Jan 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 serve-lite are vulnerable to Directory Traversal due to missing input sanitization or other checks and protections employed to the req.url passed as-is to path.join().

Weakness: CWE-22

Which versions are affected by CVE-2022-21192?

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

PackageAffectedFixed in
serve-lite npmAll versions to 1.1.0None
serve-lite npmAll versions to 1.1.0None

Products include Serve-Lite Project Serve-Lite.

How do I fix CVE-2022-21192?

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

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

Sources

Also known as GHSA-5qq4-m6c3-xxmf.

Is CVE-2022-21192 in your software?

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

Check your SBOMs for free