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

exploitDog

github логотип

GHSA-vfvf-mqq8-rwqc

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

Описание

Sanitization bypass using HTML Entities in marked

Affected versions of marked are susceptible to a cross-site scripting vulnerability in link components when sanitize:true is configured.

Proof of Concept

This flaw exists because link URIs containing HTML entities get processed in an abnormal manner. Any HTML Entities get parsed on a best-effort basis and included in the resulting link, while if that parsing fails that character is omitted.

For example:

A link URI such as

javascript&#x58document;alert(1)

Renders a valid link that when clicked will execute alert(1).

Recommendation

Update to version 0.3.6 or later.

Пакеты

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

marked

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

< 0.3.6

0.3.6

EPSS

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

6.1 Medium

CVSS3

Дефекты

CWE-79

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

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

marked is an application that is meant to parse and compile markdown. Due to the way that marked 0.3.5 and earlier parses input, specifically HTML entities, it's possible to bypass marked's content injection protection (`sanitize: true`) to inject a `javascript:` URL. This flaw exists because `&#xNNanything;` gets parsed to what it could and leaves the rest behind, resulting in just `anything;` being left.

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

marked is an application that is meant to parse and compile markdown. Due to the way that marked 0.3.5 and earlier parses input, specifically HTML entities, it's possible to bypass marked's content injection protection (`sanitize: true`) to inject a `javascript:` URL. This flaw exists because `&#xNNanything;` gets parsed to what it could and leaves the rest behind, resulting in just `anything;` being left.

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

marked is an application that is meant to parse and compile markdown. ...

EPSS

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

6.1 Medium

CVSS3

Дефекты

CWE-79