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

exploitDog

github логотип

GHSA-fwx5-5fqj-jv98

Опубликовано: 09 нояб. 2018
Источник: github
Github: Прошло ревью

Описание

Cross-Site Scripting in morris.js

Affected versions of morris.js are vulnerable to cross-site scripting attacks in labels that appear when hovering over a particular point on a generated graph. The text content of these labels is not escaped, so if control over the labels is obtained, script can be injected. The script will run on the client side whenever that specific graph is loaded.

Recommendation

A patch for this vulnerability was created in 2014, but has still not been published to npm. In order to mitigate this issue effectively, install the library from github via:

npm i morrisjs/morris.js -s

Пакеты

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

morris.js

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

= 0.5.0

Отсутствует

EPSS

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

Дефекты

CWE-79

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

CVSS3: 6.1
nvd
больше 7 лет назад

Morris.js creates an svg graph, with labels that appear when hovering over a point. The hovering label names are not escaped in versions 0.5.0 and earlier. If control over the labels is obtained, script can be injected. The script will run on the client side whenever that specific graph is loaded.

EPSS

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

Дефекты

CWE-79