Morgan is a popular Node.js middleware for logging HTTP requests, simplifying server monitoring and debugging. Examining versions 1.1.1 and 1.1.0 reveals subtle but potentially relevant changes for developers. Both versions share the same core functionality and description: they are HTTP request logger middleware. Key dependencies like "bytes" (version 1.0.0) remain consistent, ensuring backward compatibility in measuring data sizes. Similarly, development dependencies crucial for testing, such as "mocha" (version ~1.19.0), "should" (version ~3.3.1), and "supertest" (version ~0.12.0), are unchanged, indicating that the underlying testing strategy hasn't shifted.
A notable difference lies in the development dependencies. Version 1.1.0 included "coveralls" (version 2.10.0), a tool for reporting code coverage. This dependency is absent in version 1.1.1, suggesting a potential adjustment in the project's approach to code coverage reporting (or perhaps a different method is now employed). The release dates offer clues, too: version 1.1.0 was released on May 19, 2014, while version 1.1.1 followed closely on May 21, 2014. The rapid release might imply a bug fix or a small enhancement that did not warrant significant changes to the dependency structure. Developers using Morgan should consider this when choosing a version, especially concerning testing and code coverage workflows. While the core logging capabilities remain the same, the removal of "coveralls" might impact automated code analysis pipelines.
All the vulnerabilities related to the version 1.1.1 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.