Описание
The npm package "striptags" is an implementation of PHP's strip_tags in Typescript. In striptags before version 3.2.0, a type-confusion vulnerability can cause striptags to concatenate unsanitized strings when an array-like object is passed in as the html parameter. This can be abused by an attacker who can control the shape of their input, e.g. if query parameters are passed directly into the function. This can lead to a XSS.
Ссылки
- PatchThird Party Advisory
- Third Party Advisory
- Third Party Advisory
- ProductThird Party Advisory
- PatchThird Party Advisory
- Third Party Advisory
- Third Party Advisory
- ProductThird Party Advisory
Уязвимые конфигурации
Конфигурация 1Версия до 3.2.0 (исключая)
cpe:2.3:a:striptags_project:striptags:*:*:*:*:*:node.js:*:*
EPSS
Процентиль: 52%
0.00292
Низкий
3.7 Low
CVSS3
5.3 Medium
CVSS3
5 Medium
CVSS2
Дефекты
CWE-79
CWE-843
Связанные уязвимости
CVSS3: 3.7
github
больше 4 лет назад
Passing in a non-string 'html' argument can lead to unsanitized output
CVSS3: 4.8
fstec
больше 4 лет назад
Уязвимость пакета npm striptags, связанная с ошибками обработки типов данных, позволяющая нарушителю осуществлять межсайтовые сценарные атаки (XSS)
EPSS
Процентиль: 52%
0.00292
Низкий
3.7 Low
CVSS3
5.3 Medium
CVSS3
5 Medium
CVSS2
Дефекты
CWE-79
CWE-843