DOMPurify allows tampering by prototype pollution
Description
Published by the National Vulnerability Database
Sep 16, 2024
Published to the GitHub Advisory Database
Sep 16, 2024
Reviewed
Sep 16, 2024
Last updated
Sep 16, 2024
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 cure53/DOMPurify@1e52026 (3.x branch) and cure53/DOMPurify@26e1d69 (2.x branch).
References