CVE-2023-26104: Lite web server Denial of Service Vulnerability
HIGHCVE-2023-26104 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Lite web server libraries in the npm ecosystem. The issue involves denial of service vulnerability in lite-web-server. Remediation is available in the latest vendor maintenance releases.
CVE-2023-26104 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-2023-26104
To remediate this vulnerability, upgrade all affected Lite web 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-web-server@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls lite-web-server
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-26104, inspect your project dependencies using npm:
npm ls lite-web-server
Analyze the terminal output to locate any version of Lite web 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-web-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 web 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-2023-26104 Affected Lite web server Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lite-web-server
|
npm |
≤ 1.2.2
|
|
References
Frequently Asked Questions
What is CVE-2023-26104?
Which Lite web server versions are affected?
What version fixes CVE-2023-26104?
Is lite-web-server affected?
What is the CVSS score of CVE-2023-26104?
What CWE is associated with CVE-2023-26104?
How can I check npm dependencies for CVE-2023-26104?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8237-3q5g-99fv",
"modified" : "2023-02-27T14:56:32Z",
"published" : "2023-02-25T06:30:21Z",
"aliases" : [ "CVE-2023-26104" ],
"summary" : "Denial of Service vulnerability in lite-web-server",
"details" : "All versions of the package lite-web-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-web-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-26104"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/lirantal/637520812da06fffb91dd86d02ff6bde"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/chasyumen/lite-web-server"
}, {
"type" : "WEB",
"url" : "https://github.com/chasyumen/lite-web-server/blob/main/src/WebServer.js#23L274"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-LITEWEBSERVER-3153703"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-27T14:56:32Z",
"nvd_published_at" : "2023-02-25T05:15:00Z"
}
}