Vulnerabilities in pkg:npm/lite-server
PACKAGECVE-2022-25940 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Lite server libraries in the npm ecosystem. The issue involves lite-server vulnerable to denial of service. Remediation is available in the latest vendor maintenance releases.
pkg:npm/lite-server
Vulnerability advisories affecting package pkg:npm/lite-server. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-89w7-5q45-r53w | CVE-2022-25940 | HIGH | lite-server vulnerable to Denial of Service |
CVE-2022-25940 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2022-25940
To remediate this vulnerability, upgrade all affected Lite server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install lite-server@Latest secure release
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>lite-server</artifactId>
<version>Latest secure release</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls lite-server
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-25940, inspect your project dependencies using npm:
npm ls lite-server
Analyze the terminal output to locate any version of Lite server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls lite-server command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Lite server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-25940 Affected Lite server Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lite-server
|
npm |
≤ 2.6.1
|
|
|
org.webjars.npm:lite-server
|
Maven |
≤ 2.2.0
|
|
References
Frequently Asked Questions
What is CVE-2022-25940?
Which Lite server versions are affected?
What version fixes CVE-2022-25940?
Is lite-server affected?
What is the CVSS score of CVE-2022-25940?
What CWE is associated with CVE-2022-25940?
How can I check npm dependencies for CVE-2022-25940?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-89w7-5q45-r53w",
"modified" : "2025-04-16T21:41:24Z",
"published" : "2022-12-20T06:30:36Z",
"aliases" : [ "CVE-2022-25940" ],
"summary" : "lite-server vulnerable to Denial of Service",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "lite-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.6.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.webjars.npm:lite-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-25940"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/lirantal/832382155e00da92bfd8bb3adea474eb"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/johnpapa/lite-server"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3175617"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-LITESERVER-3153540"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-20T17:37:47Z",
"nvd_published_at" : "2022-12-20T05:15:00Z"
}
}