shadowwzw/lite-dev-server · Security
lite-dev-server vulnerable to Directory Traversal
- GHSA ID
- GHSA-pppv-ch8p-rp2w
- CVE ID
- CVE-2022-25895
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Description
All versions of package lite-dev-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.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-25895 ↗
- https://gist.github.com/lirantal/0f8a48c3f5ac581ce73123abe9f7f120 ↗
- https://security.snyk.io/vuln/SNYK-JS-LITEDEVSERVER-3153718 ↗
- https://github.com/shadowwzw/lite-dev-server/blob/master/src/server.js#23L134 ↗
- https://github.com/advisories/GHSA-pppv-ch8p-rp2w ↗