Morgan is a popular HTTP request logger middleware for Node.js applications, providing developers with essential insights into their server's activity. Examining the differences between versions 1.5.2 and 1.5.3 reveals subtle but important updates for users. Version 1.5.3, released on May 11, 2015, incorporates updated dependencies. Specifically, the depd dependency is updated from ~1.0.0 to ~1.0.1, debug from ~2.1.3 to ~2.2.0, and basic-auth moves from 1.0.0 to ~1.0.1. The on-finished dependency is also updated from ~2.2.0 to ~2.2.1. These dependency updates likely address bug fixes, security enhancements, or performance improvements within those respective packages, indirectly benefiting Morgan users by ensuring a more stable and secure logging experience. While the core functionality of Morgan remains consistent between the two versions, developers should consider upgrading to 1.5.3. These incremental updates provide the cumulative advantages of its dependency upgrades. Both versions maintain the same core features, allowing developers to easily log request details, response times, and other relevant HTTP transaction information. Using Morgan enriches the developer experience by simplifying debugging and performance monitoring. The library also adheres to the MIT license, making incorporating it into projects straightforward.
All the vulnerabilities related to the version 1.5.3 of the package
Code Injection in morgan
Verisons of morgan
before 1.9.1 are vulnerable to code injection when user input is allowed into the filter or combined with a prototype pollution attack.
Update to version 1.9.1 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.
Vercel ms Inefficient Regular Expression Complexity vulnerability
A vulnerability, which was classified as problematic, has been found in vercel ms up to 1.x. This issue affects the function parse of the file index.js. The manipulation of the argument str leads to inefficient regular expression complexity. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 2.0.0 is able to address this issue. The name of the patch is caae2988ba2a37765d055c4eee63d383320ee662. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-217451.