Moment.js version 2.15.1 is a minor patch release following the 2.15.0 version of this popular JavaScript date manipulation library. Both versions share the same core functionality of parsing, validating, manipulating, and displaying dates and times in JavaScript. They are distributed under the MIT license, offering developers the freedom to integrate them into various projects. Key features in both versions include robust date formatting, parsing from various string formats, date arithmetic, and time zone support.
The primary distinction lies in the release date, with version 2.15.1 being released on September 21, 2016, subsequent to version 2.15.0 released on September 12, 2016, suggesting that 2.15.1 likely addresses bugs or includes minor improvements identified after the initial 2.15.0 release. Developers should opt for version 2.15.1 to leverage these potential fixes and enhancements, ensuring a more stable and reliable experience. The devDependencies section remains consistent across both versions, indicating no changes in the tools used for development, testing, and building the library. These dependencies comprise tools for linting, testing (Karma, QUnit), code coverage (NYC, Coveralls), and build processes (Grunt, UglifyJS), maintaining a consistent development workflow. For developers already using 2.15.0, upgrading to 2.15.1 is generally recommended to benefit from any bug fixes without introducing breaking changes.
All the vulnerabilities related to the version 2.15.1 of the package
Regular Expression Denial of Service in moment
Affected versions of moment
are vulnerable to a low severity regular expression denial of service when parsing dates as strings.
Update to version 2.19.3 or later.
Path Traversal: 'dir/../../filename' in moment.locale
This vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg fr
is directly used to switch moment locale.
This problem is patched in 2.29.2, and the patch can be applied to all affected versions (from 1.0.1 up until 2.29.1, inclusive).
Sanitize user-provided locale name before passing it to moment.js.
Are there any links users can visit to find out more?
If you have any questions or comments about this advisory: