Technical impact
DOMPurify before 3.4.17 contains a cross-site scripting vulnerability that allows attackers to bypass the SMIL attributeName=href guard when PARSER_MEDIA_TYPE is application/xhtml+xml, because transformCaseFunc does not lowercase attribute names. Attackers can submit SVG with an animate or set element using attributeName="href" and a javascript: entry in values to execute script when users click the sanitized link.
Affected Systems
This flaw affects all installations of DOMPurify from the cure53 vendor that use a version earlier than 3.4.17. There is no further version granularity provided; any pre-3.4.17 build is potentially vulnerable.
Risk and Exploitability
The CVSS score of 5.1 indicates a moderate impact. While the EPSS score is not available, the issue is not listed in the CISA KEV catalog, suggesting limited public exploitation. The attack requires that the application processes user supplied SVG via DOMPurify in XHTML mode, meaning an attacker can achieve XSS by submitting crafted SVG content that bypasses the attribute guard. The resulting script execution can lead to theft of session data, defacement, or further lateral movement, depending on the context in which sanitized content is rendered.