Lucene search

K
githubGitHub Advisory DatabaseGHSA-WG96-3933-J2W5
HistoryNov 09, 2018 - 5:45 p.m.

Cross-Site Scripting in sanitize-html

2018-11-0917:45:55
CWE-79
GitHub Advisory Database
github.com
8

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

6.1 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

0.001 Low

EPSS

Percentile

46.4%

Affected versions of sanitize-html are vulnerable to cross-site scripting.

Proof of Concept:

<img src>
produces the following:

<img src />
This is definitely invalid HTML, but would suggest that it’s being interpreted incorrectly by the parser.

Recommendation

Update to version 1.2.3 or later.

Affected configurations

Vulners
Node
sanitizehtmlRange<1.2.3
CPENameOperatorVersion
sanitize-htmllt1.2.3

4.3 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:M/Au:N/C:N/I:P/A:N

6.1 Medium

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

0.001 Low

EPSS

Percentile

46.4%