Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CVE-2022-24785] A path traversal vulnerability in moment #183

Closed
skukhtichev opened this issue Nov 22, 2022 · 0 comments · Fixed by #186
Closed

[CVE-2022-24785] A path traversal vulnerability in moment #183

skukhtichev opened this issue Nov 22, 2022 · 0 comments · Fixed by #186

Comments

@skukhtichev
Copy link

Moment.js is a JavaScript date library for parsing, validating, manipulating, and formatting dates. A path traversal vulnerability impacts npm (server) users of Moment.js between versions 1.0.1 and 2.29.1, especially if a user-provided locale string 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. As a workaround, sanitize the user-provided locale name before passing it to Moment.js.

Will it be possible to upgrade moment to the version 2.29.2 or newer?

The current version is ~2.19.3: https://github.com/jupyter/nbclassic/blob/main/bower.json#L19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant