Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. serve-lite
  4. ›
  5. CVE-2022-21192

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

January 26, 2023 (updated April 1, 2025)

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().

References

  • gist.github.com/lirantal/9ccdfda0edcb95e36d07a04b0b6c2db0
  • github.com/advisories/GHSA-5qq4-m6c3-xxmf
  • github.com/beenotung/serve-lite
  • nvd.nist.gov/vuln/detail/CVE-2022-21192
  • security.snyk.io/vuln/SNYK-JS-SERVELITE-3149916

Code Behaviors & Features

Detect and mitigate CVE-2022-21192 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.1.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/serve-lite/CVE-2022-21192.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:56 +0000.