Lucene search

K
osvGoogleOSV:GO-2022-0588
HistoryAug 15, 2022 - 6:02 p.m.

Cross-site scripting via leaked style elements in github.com/microcosm-cc/bluemonday

2022-08-1518:02:24
Google
osv.dev
4

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

5.7 Medium

AI Score

Confidence

High

0.003 Low

EPSS

Percentile

71.7%

The bluemonday HTML sanitizer can leak the contents of a “style” element into HTML output, potentially causing XSS vulnerabilities.

The default bluemonday sanitization policies are not vulnerable. Only user-defined policies allowing “select”, “style”, and “option” elements are affected.

Permitting the “style” element in policies is hazardous, because bluemonday does not contain a CSS sanitizer. Newer versions of bluemonday suppress “style” and “script” elements even when allowed by a policy unless the policy explicitly requests unsafe processing.

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

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

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

5.7 Medium

AI Score

Confidence

High

0.003 Low

EPSS

Percentile

71.7%