Lucene search

K
githubGitHub Advisory DatabaseGHSA-MMHX-HMJR-R674
HistorySep 16, 2024 - 8:34 p.m.

DOMPurify allows tampering by prototype pollution

2024-09-1620:34:26
CWE-1321
CWE-1333
GitHub Advisory Database
github.com
8
dompurify
tampering
prototype pollution
vulnerability
depth check
xss
fix
software

CVSS3

7.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

LOW

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

AI Score

6

Confidence

High

EPSS

0

Percentile

16.3%

It has been discovered that malicious HTML using special nesting techniques can bypass the depth checking added to DOMPurify in recent releases. It was also possible to use Prototype Pollution to weaken the depth check.

This renders dompurify unable to avoid XSS attack.

Fixed by https://github.com/cure53/DOMPurify/commit/1e520262bf4c66b5efda49e2316d6d1246ca7b21 (3.x branch) and https://github.com/cure53/DOMPurify/commit/26e1d69ca7f769f5c558619d644d90dd8bf26ebc (2.x branch).

Affected configurations

Vulners
Node
cure53dompurifyRange<3.1.3
OR
cure53dompurifyRange<2.5.4
VendorProductVersionCPE
cure53dompurify*cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*

CVSS3

7.3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

LOW

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

AI Score

6

Confidence

High

EPSS

0

Percentile

16.3%

Related for GHSA-MMHX-HMJR-R674