Lucene search

K
friendsofphpOpenJS FoundationFRIENDSOFPHP:ENSHRINED:SVG-SANITIZE:CVE-2022-23638
HistoryFeb 15, 2022 - 1:54 a.m.

A cross-site scripting vulnerability

2022-02-1501:54:00
OpenJS Foundation
github.com
4
cross-site scripting
svg sanitizer
html elements

CVSS2

4.3

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

CVSS3

6.2

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

AI Score

6.1

Confidence

High

EPSS

0.001

Percentile

27.5%

Description Impact SVG sanitizer library before version 0.15.0 did not remove HTML elements wrapped in a CDATA section. As a result, SVG content embedded in HTML (fetched as text/html) was susceptible to cross-site scripting. Plain SVG files (fetched as image/svg+xml) were not affected. Patches This issue is fixed in 0.15.0 and higher. Workarounds There is currently no workaround available without upgrading. For more information If you have any questions or comments about this advisory: Open an issue in Github Email us at [email protected] References GHSA-fqx8-v33p-4qcc darylldoyle/svg-sanitizer@17e12ba https://nvd.nist.gov/vuln/detail/CVE-2022-23638 darylldoyle/svg-sanitizer#71 https://github.com/FriendsOfPHP/security-advisories/blob/master/enshrined/svg-sanitize/CVE-2022-23638.yaml GHSA-fqx8-v33p-4qcc

Affected configurations

Vulners
Node
enshrinedsvg_sanitizeRange<0.15.0
VendorProductVersionCPE
enshrinedsvg_sanitize*cpe:2.3:a:enshrined:svg_sanitize:*:*:*:*:*:*:*:*

CVSS2

4.3

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

CVSS3

6.2

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

AI Score

6.1

Confidence

High

EPSS

0.001

Percentile

27.5%