Send is a popular Node.js package serving as a robust and efficient static file server, equipping developers with features like Range and conditional-GET support for optimized content delivery. Comparing versions 0.15.3 and 0.15.4, developers will find that while the core function of the library remains consistent, there are some noteworthy differences.
Version 0.15.4 boasts an update to the debug dependency, moving from version 2.6.7 to 2.6.8, and an update to depd from ~1.1.0 to ~1.1.1. Furthermore, http-errors has been updated from ~1.6.1 to ~1.6.2. These dependency adjustments likely address bug fixes, performance enhancements, or security patches within those specific modules, indirectly improving the overall stability and reliability of send. Developers should be aware that these updates might introduce minor behavioral variations, encouraging thorough testing during upgrades.
Both versions include a solid toolkit of developer-focused dependencies like eslint for code linting, mocha for testing, and supertest for HTTP testing, highlighting a commitment to code quality. The licensing remains MIT for both, providing developers with freedom when using the library in their projects. Another interesting point is the release date, from May 17, 2017 to August 6, 2017 showing a gap of almost 3 months, which suggest the presence of a problem that needed to be patched.
Developers interested in serving static files efficiently should find send a valuable asset, and while the changes between these versions seem minor, keeping dependencies up to date is an important security consideration.
All the vulnerabilities related to the version 0.15.4 of the package
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.