DOMPurify versions prior to 2.5.4 and versions 3.0.0 up to but not including 3.1.3 are vulnerable to a prototype pollution issue that allows attackers to bypass depth checking mechanisms. This vulnerability can enable cross-site scripting (XSS) attacks by tampering with the sanitization process. Fixes have been released in versions 2.5.4 and 3.1.3.