Send is a Node.js module designed for efficiently serving static files with advanced features like Range requests and conditional-GET support, enhancing the user experience by enabling features like seeking in video files and reducing bandwidth usage. Examining versions 0.1.1 and 0.1.2, we observe largely consistent dependencies and development dependencies, including "mime" for handling file types, "debug" for logging, "fresh" for HTTP cache validation, and "range-parser" to manage partial content requests. Development tools like "mocha," "should," "connect," and "supertest" remain constant for testing.
The key differentiator between the two versions lies in the release date, with version 0.1.2 published on July 3, 2013, subsequent to version 0.1.1, which was released on June 3, 2013. This indicates that version 0.1.2 likely incorporates bug fixes, performance improvements, or minor feature enhancements implemented since the prior release. The core functionality of streamlined static file delivery remains the same. Upgrade to version 0.1.2 to leverage the latest improvements, ensuring optimal performance and potentially resolving any lingering issues present in version 0.1.1 while relying on a battle-tested tool used by many popular frameworks and libraries. Consider the minor version bump as a signal of small improvements and features, which is important for developers to keep their systems updated.
All the vulnerabilities related to the version 0.1.2 of the package
Directory Traversal in send
Versions 0.8.3 and earlier of send
are affected by a directory traversal vulnerability. When relying on the root option to restrict file access it may be possible for an application consumer to escape out of the restricted directory and access files in a similarly named directory.
For example, static(_dirname + '/public')
would allow access to _dirname + '/public-restricted'
.
Update to version 0.8.4 or later.
Root Path Disclosure in send
Versions of send
prior to 0.11.2 are affected by an information leakage vulnerability which may allow an attacker to enumerate paths on the server filesystem.
Update to version 0.11.1 or later.
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.
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.