Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. easy-static-server
  4. ›
  5. CVE-2022-25931

CVE-2022-25931: easy-static-server vulnerable to Directory Traversal

December 20, 2022 (updated December 29, 2022)

All versions of package easy-static-server is 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.

References

  • gist.github.com/lirantal/fdfbe26561788c8194a54bf6d31772c9
  • github.com/advisories/GHSA-wcwm-c3mr-pxcr
  • github.com/cunjieliu/easyServer/blob/master/index.js
  • nvd.nist.gov/vuln/detail/CVE-2022-25931
  • security.snyk.io/vuln/SNYK-JS-EASYSTATICSERVER-3153539

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions

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/easy-static-server/CVE-2022-25931.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:26 +0000.