
Cloud Vulnerability DB
A community-led vulnerabilities database
The node-static package, versions 0.7.11 and earlier, contains a Denial of Service vulnerability. The vulnerability was discovered and disclosed to the GitHub Advisory Database on September 22, 2021. The issue affects the package's file serving functionality when handling user input containing null bytes (GitHub Advisory).
The vulnerability stems from the package's failure to properly handle null bytes in pathname requests. When a request containing a U+0000 NULL character is made (e.g., http://host/%00), it causes fs.stat to crash with a TypeError, stating 'The argument 'path' must be a string or Uint8Array without null bytes.' This issue became particularly problematic with Node.js v10, where fs.stat began throwing synchronous errors instead of passing them to the callback function (PR Discussion).
When exploited, this vulnerability allows attackers to cause a Denial of Service condition by sending requests containing null bytes, effectively crashing the server. This impacts the availability of services using the node-static package (GitHub Advisory).
Currently, there are no patched versions available for this vulnerability. The recommended mitigation is to protect fs.stat calls from invalid path arguments and implement proper input validation to reject requests containing null bytes (GitHub Advisory).
The security community has expressed concern about the vulnerability's status, with multiple developers calling for its resolution in the GitHub pull request discussion. The issue gained attention particularly due to its potential impact on production systems (PR Discussion).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."