Ant Design (antd) has released version 4.2.3, building upon the solid foundation of version 4.2.2. Both versions maintain Ant Design's commitment to providing enterprise-class UI components for React applications. A primary difference lies in the updated dependencies. Notably, rc-picker is updated from version ~1.4.0 to ~1.4.16 and @ant-design/react-slick is updated from version ~0.25.5 to ~0.26.1. Furthermore, in version 4.2.3 rc-progress is updated to version ~3.0.0 from version ~2.5.0 in 4.2.2. For developers, this signifies potential enhancements and bug fixes within these specific components.
The development dependencies also reveal some changes. The key changes are in typescript version being updated from ~3.8.2 to ~3.9.2 and eslint-plugin-unicorn being updated from 19.0.0 to 20.0.0. This means that the developers of the antd library upgraded their tooling and this can provide improvements in future releases.
Both releases share a common goal which is to provide a comprehensive suite of UI elements, including layouts, navigation, data display components, and form controls. Developers can expect consistent styling and behavior across these versions, ensuring a smooth upgrade experience. The library continues to support React versions >=16.9.0 and relies on peer dependencies like react and react-dom. By embracing Ant Design, developers benefit from a well-documented, actively maintained library that promotes consistency and efficiency in web application development, the updated dependencies in 4.2.3 promise even greater stability and richer functionalities.
All the vulnerabilities related to the version 4.2.3 of the package
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:
Moment.js vulnerable to Inefficient Regular Expression Complexity
The problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking.
In general, given the proliferation of ReDoS attacks, it makes sense to limit the length of the user input to something sane, like 200 characters or less. I haven't seen legitimate cases of date-time strings longer than that, so all moment users who do pass a user-originating string to constructor are encouraged to apply such a rudimentary filter, that would help with this but also most future ReDoS vulnerabilities.
There is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973=
The issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. moment("(".repeat(500000))
will take a few minutes to process, which is unacceptable.