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

exploitDog

github логотип

GHSA-qxg5-2qff-p49r

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

Описание

Passing in a non-string 'html' argument can lead to unsanitized output

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.

Impact

XSS

Patches

3.2.0

Workarounds

Ensure that the html parameter is a string before calling the function.

Пакеты

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

striptags

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

< 3.2.0

3.2.0

EPSS

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

3.7 Low

CVSS3

Дефекты

CWE-241
CWE-79
CWE-843

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

CVSS3: 3.7
nvd
больше 4 лет назад

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.

CVSS3: 4.8
fstec
больше 4 лет назад

Уязвимость пакета npm striptags, связанная с ошибками обработки типов данных, позволяющая нарушителю осуществлять межсайтовые сценарные атаки (XSS)

EPSS

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

3.7 Low

CVSS3

Дефекты

CWE-241
CWE-79
CWE-843