Serve-static versions 1.12.3 and 1.12.4 are both designed to efficiently serve static files in Node.js applications, commonly used with frameworks like Express. The core functionality remains consistent, focusing on delivering static content with features like setting appropriate headers and handling various file types.
A key difference lies in their dependencies. Version 1.12.4 updates the send dependency from version 0.15.3 to 0.15.4. This update in send, a module responsible for sending HTTP responses, likely includes bug fixes or performance improvements related to file delivery. An important update can be found in the eslint-plugin-node dependency, which moves from version 4.2.2 to 5.1.0. This represents a significant update in the linting rules applied to the JavaScript code, potentially enforcing stricter coding standards and identifying more potential issues.
Developers upgrading from 1.12.3 to 1.12.4 should primarily consider the changes within the send dependency and the potential impact of the updated eslint-plugin-node on their development workflow. While the core usage of serve-static remains the same, the increased version number from the linting plugin might surface new linting errors in existing code, requiring adjustments to maintain code quality and adhere to updated standards. Understanding the specifics of the send update is crucial for ensuring consistent and reliable file delivery within your applications.
All the vulnerabilities related to the version 1.12.4 of the package
serve-static vulnerable to template injection that can lead to XSS
passing untrusted user input - even after sanitizing it - to redirect()
may execute untrusted code
this issue is patched in serve-static 1.16.0
users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist
successful exploitation of this vector requires the following:
send vulnerable to template injection that can lead to XSS
passing untrusted user input - even after sanitizing it - to SendStream.redirect()
may execute untrusted code
this issue is patched in send 0.19.0
users are encouraged to upgrade to the patched version of express, but otherwise can workaround this issue by making sure any untrusted inputs are safe, ideally by validating them against an explicit allowlist
successful exploitation of this vector requires the following:
mime Regular Expression Denial of Service when MIME lookup performed on untrusted user input
Affected versions of mime
are vulnerable to regular expression denial of service when a mime lookup is performed on untrusted user input.
Update to version 2.0.3 or later.
debug Inefficient Regular Expression Complexity vulnerability
A vulnerability classified as problematic has been found in debug-js debug up to 3.0.x. This affects the function useColors of the file src/node.js. The manipulation of the argument str leads to inefficient regular expression complexity. Upgrading to version 3.1.0 is able to address this issue. The name of the patch is c38a0166c266a679c8de012d4eaccec3f944e685. It is recommended to upgrade the affected component. The identifier VDB-217665 was assigned to this vulnerability. The patch has been backported to the 2.6.x branch in version 2.6.9.
Regular Expression Denial of Service in debug
Affected versions of debug
are vulnerable to regular expression denial of service when untrusted user input is passed into the o
formatter.
As it takes 50,000 characters to block the event loop for 2 seconds, this issue is a low severity issue.
This was later re-introduced in version v3.2.0, and then repatched in versions 3.2.7 and 4.3.1.
Version 2.x.x: Update to version 2.6.9 or later. Version 3.1.x: Update to version 3.1.0 or later. Version 3.2.x: Update to version 3.2.7 or later. Version 4.x.x: Update to version 4.3.1 or later.
Regular Expression Denial of Service in fresh
Affected versions of fresh
are vulnerable to regular expression denial of service when parsing specially crafted user input.
Update to version 0.5.2 or later.