Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-8hfj-j24r-96c4

Опубликовано: 04 апр. 2022
Источник: github
Github: Прошло ревью
CVSS3: 7.5

Описание

Path Traversal: 'dir/../../filename' in moment.locale

Impact

This vulnerability impacts npm (server) users of moment.js, especially if user provided locale string, eg fr is directly used to switch moment locale.

Patches

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).

Workarounds

Sanitize user-provided locale name before passing it to moment.js.

References

Are there any links users can visit to find out more?

For more information

If you have any questions or comments about this advisory:

Пакеты

Наименование

moment

npm
Затронутые версииВерсия исправления

< 2.29.2

2.29.2

Наименование

Moment.js

nuget
Затронутые версииВерсия исправления

< 2.29.2

2.29.2

EPSS

Процентиль: 84%
0.02206
Низкий

7.5 High

CVSS3

Дефекты

CWE-22
CWE-27

Связанные уязвимости

CVSS3: 7.5
ubuntu
почти 4 года назад

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.

CVSS3: 7.5
redhat
почти 4 года назад

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.

CVSS3: 7.5
nvd
почти 4 года назад

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.

CVSS3: 7.5
debian
почти 4 года назад

Moment.js is a JavaScript date library for parsing, validating, manipu ...

CVSS3: 7.5
fstec
около 1 года назад

Уязвимость компонента moment.js агента скнирования RedCheck, позволяющая нарушителю получить доступ к файлам на сервере за пределами ожидаемого каталога с локализацией

EPSS

Процентиль: 84%
0.02206
Низкий

7.5 High

CVSS3

Дефекты

CWE-22
CWE-27