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

CVE-2022-25940: lite-server vulnerable to Denial of Service

December 20, 2022 (updated April 16, 2025)

All versions of package lite-server are vulnerable to Denial of Service (DoS) when an attacker sends an HTTP request and includes control characters that the decodeURI() function is unable to parse.

References

  • gist.github.com/lirantal/832382155e00da92bfd8bb3adea474eb
  • github.com/advisories/GHSA-89w7-5q45-r53w
  • github.com/johnpapa/lite-server
  • nvd.nist.gov/vuln/detail/CVE-2022-25940
  • security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3175617
  • security.snyk.io/vuln/SNYK-JS-LITESERVER-3153540

Code Behaviors & Features

Detect and mitigate CVE-2022-25940 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 up to 2.6.1

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:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/lite-server/CVE-2022-25940.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:48 +0000.