Vulnerabilities in pkg:npm/node-static
PACKAGEGHSA-8r4g-cg4m-x23c is a MODERATE denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Node static libraries in the npm ecosystem. The issue involves denial of service in node-static. Remediation is available in the latest vendor maintenance releases.
pkg:npm/node-static
Vulnerability advisories affecting package pkg:npm/node-static. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8r4g-cg4m-x23c | - | MODERATE | Denial of Service in node-static |
| GHSA-5g97-whc9-8g7j | CVE-2023-26111 | HIGH | node-static and @nubosoftware/node-static vulnerable to Directory Traversal |
GHSA-8r4g-cg4m-x23c at a Glance
How to Fix GHSA-8r4g-cg4m-x23c
To remediate this vulnerability, upgrade all affected Node static 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 node-static@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls node-static
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-8r4g-cg4m-x23c, inspect your project dependencies using npm:
npm ls node-static
Analyze the terminal output to locate any version of Node static 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 node-static 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 Node static, 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
GHSA-8r4g-cg4m-x23c Affected Node static Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
node-static
|
npm |
≤ 0.7.11
|
|
References
Frequently Asked Questions
What is GHSA-8r4g-cg4m-x23c?
Which Node static versions are affected?
What version fixes GHSA-8r4g-cg4m-x23c?
Is node-static affected?
What CWE is associated with GHSA-8r4g-cg4m-x23c?
How can I check npm dependencies for GHSA-8r4g-cg4m-x23c?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8r4g-cg4m-x23c",
"modified" : "2025-10-03T18:27:42Z",
"published" : "2021-09-22T18:22:02Z",
"aliases" : [ ],
"summary" : "Denial of Service in node-static",
"details" : "All versions of node-static are vulnerable to a Denial of Service. The package fails to catch an exception when user input includes null bytes. This allows attackers to access `http://host/%00` and crash the server.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "node-static"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.7.11"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-11149"
}, {
"type" : "WEB",
"url" : "https://github.com/cloudhead/node-static/pull/213"
}, {
"type" : "WEB",
"url" : "https://github.com/github/advisory-database/pull/6248"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cloudhead/node-static"
}, {
"type" : "WEB",
"url" : "https://github.com/cloudhead/node-static/blob/643a528ec7bbd05a59c4030655d94810570afb3f/CHANGES.md#-unreleased"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-NODESTATIC-1297183"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-248", "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-09-22T18:21:20Z",
"nvd_published_at" : null
}
}