high7.0
CVE-2024-45801
DOMPurify allows tampering by prototype pollution
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | dompurify | < 2.5.4 | 2.5.4 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Cure53 | Dompurify | before 2.5.4 from 3.0.0 before 3.1.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/cure53/DOMPurify/commit/1e520262bf4c66b5efda49e2316d6d1246ca7b21
- https://github.com/cure53/DOMPurify/commit/26e1d69ca7f769f5c558619d644d90dd8bf26ebc
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-mmhx-hmjr-r674
- https://github.com/advisories/GHSA-mmhx-hmjr-r674
- https://nvd.nist.gov/vuln/detail/CVE-2024-45801