The vulnerability stems from DOMPurify's HTML sanitization logic failing to properly handle nested headline elements and markup reconstruction. The advisory explicitly states this was an mXSS (mutation XSS) issue fixed in 2.2.3. The exploit examples demonstrate that specially crafted nested elements could bypass sanitization when parsed by browsers' HTML parsers, particularly through elements like <math><mtext><option> combinations. As DOMPurify's core functionality resides in its sanitize() method, and the patch specifically addressed parsing edge cases in element handling, this is the clear vulnerable function. The high confidence comes from multiple sources (GHSA, Snyk, and detailed exploit analysis) explicitly linking the vulnerability to DOMPurify's sanitization logic for nested elements.