CVE-2022-21192 Directory Traversal vulnerability in serve-lite
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.
| Package | Affected | Fixed in |
|---|---|---|
serve-lite npm | All versions to 1.1.0 | None |
serve-lite npm | All versions to 1.1.0 | None |
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.
Other vulnerabilities in serve-lite
Sources
Also known as GHSA-5qq4-m6c3-xxmf.