Moment.js
A lightweight JavaScript date library for parsing, manipulating, and formatting dates.
Activity
- Latest release
- 2y ago
- Total releases
- 76
- Cadence
- ~25 days
- Last 12 months
- 0
Details
- First release
- Dec 17, 2011
| Version | Released | |
|---|---|---|
2.30.1
patch
|
2.30.1
patch
|
|
2.30.0
minor
|
2.30.0
minor
|
|
2.29.4
patch
|
2.29.4
patch
|
|
2.29.3
patch
1 CVE
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.29.3
patch
|
|
2.29.2
patch
1 CVE
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.29.2
patch
|
|
2.29.1
patch
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.29.1
patch
|
|
2.29.0
minor
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.29.0
minor
|
|
2.28.0
minor
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.28.0
minor
|
|
2.27.0
minor
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.27.0
minor
|
|
2.26.0
minor
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.26.0
minor
|
|
2.25.2
patch
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.25.2
patch
|
|
2.25.1
patch
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.25.1
patch
|
|
2.25.0
minor
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.25.0
minor
|
|
2.24.0
minor
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.24.0
minor
|
|
2.23.0
minor
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.23.0
minor
|
|
2.22.2
patch
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.22.2
patch
|
|
2.22.1
patch
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.22.1
patch
|
|
2.22.0
minor
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.22.0
minor
|
|
2.21.0
minor
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.21.0
minor
|
|
2.20.1
patch
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.20.1
patch
|
|
2.20.0
minor
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.20.0
minor
|
|
2.19.4
patch
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.19.4
patch
|
|
2.19.3
patch
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.19.3
patch
|
|
2.19.2
patch
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.19.2
patch
|
|
2.19.1
patch
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.19.1
patch
|
|
2.19.0
minor
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.19.0
minor
|
|
2.18.2
patch
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.18.2
patch
|
|
2.18.1
patch
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.18.1
patch
|
|
2.18.0
minor
2 CVEs
CVE-2022-31129
GHSA-wc69-rhjr-hc9g
Jul 06, 2022
Moment.js vulnerable to Inefficient Regular Expression Complexity
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
None
High
Impact
PatchesThe problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. WorkaroundsIn 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. ReferencesThere is an excellent writeup of the issue here: https://github.com/moment/moment/pull/6015#issuecomment-1152961973= DetailsThe issue is rooted in the code that removes legacy comments (stuff inside parenthesis) from strings during rfc2822 parsing. Affected versions
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.20.0
2.20.1
2.21.0
2.22.0
+ 14 more Show less
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
Fixed in
2.29.4
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.18.0
minor
|
|
2.17.1
patch
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.17.1
patch
|
|
2.17.0
minor
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.17.0
minor
|
|
2.16.0
minor
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.16.0
minor
|
|
2.15.2
patch
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.15.2
patch
|
|
2.15.1
patch
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.15.1
patch
|
|
2.15.0
minor
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.15.0
minor
|
|
2.14.3
patch
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.14.3
patch
|
|
2.14.2
patch
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.14.2
patch
|
|
2.14.1
minor
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.14.1
minor
|
|
2.13.0
minor
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.13.0
minor
|
|
2.12.0
minor
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.12.0
minor
|
|
2.11.2
patch
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.11.2
patch
|
|
2.11.1
patch
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.11.1
patch
|
|
2.11.0
minor
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.11.0
minor
|
|
2.10.6
patch
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.10.6
patch
|
|
2.10.5
patch
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.10.5
patch
|
|
2.10.3
patch
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.10.3
patch
|
|
2.10.2
patch
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.10.2
patch
|
|
2.10.1
patch
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.10.1
patch
|
|
2.10.0
minor
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.10.0
minor
|
|
2.9.0
minor
1 CVE
CVE-2022-24785
GHSA-8hfj-j24r-96c4
Apr 04, 2022
Path Traversal: 'dir/../../filename' in moment.locale
7.5
/ 10
High
Network
Low
None
None
Unchanged
None
High
None
ImpactThis vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg PatchesThis 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). WorkaroundsSanitize user-provided locale name before passing it to moment.js. ReferencesAre there any links users can visit to find out more? For more informationIf you have any questions or comments about this advisory:
Affected versions
1.2.0
1.3.0
1.4.0
1.5.0
1.5.1
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
2.0.0
+ 60 more Show less
2.1.0
2.10.0
2.10.1
2.10.2
2.10.3
2.10.5
2.10.6
2.11.0
2.11.1
2.11.2
2.12.0
2.13.0
2.14.1
2.14.2
2.14.3
2.15.0
2.15.1
2.15.2
2.16.0
2.17.0
2.17.1
2.18.0
2.18.1
2.18.2
2.19.0
2.19.1
2.19.2
2.19.3
2.19.4
2.2.0
2.2.1
2.20.0
2.20.1
2.21.0
2.22.0
2.22.1
2.22.2
2.23.0
2.24.0
2.25.0
2.25.1
2.25.2
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.3.0
2.3.1
2.4.0
2.5.0
2.5.1
2.6.0
2.7.0
2.8.0
2.8.1
2.8.2
2.8.3
2.8.4
2.9.0
Fixed in
2.29.2
References
Updated Sep 10, 2026 · Source: OSV.dev |
2.9.0
minor
|