Technical impact
The vulnerability resides in the regular expression used within the stripRemoteCssTokens() function of svg-sanitizer versions 1.0.0 through 1.0.x. When the removeRemoteReferences flag is enabled, an attacker can craft SVG files that contain a large quantity of unclosed image‑set tokens. The regex engine that processes these tokens becomes overloaded, leading to CPU exhaustion or a denial‑of‑service loop. Additionally, the regex may hit internal PCRE limits, causing sanitize() to throw a TypeError and abort sanitization, thus potentially leaving the SVG unsanitized and creating a vector for downstream XSS or injection attacks. The primary impact is service disruption and a breach of content integrity.
Affected Systems
Deployments of darylldoyle's svg‑sanitizer before version 1.1.0, including all 1.0.x releases used within Drupal or independently, are affected.
Risk and Exploitability
The CVSS score of 8.2 indicates a high severity. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog, implying limited public exploitation to date. Attackers would need to supply a crafted SVG document to a system that invokes svg‑sanitizer with removeRemoteReferences enabled, which typically occurs via a web upload or API that accepts SVG content. The attack path is remote and can be triggered from an untrusted source, potentially exhausting server resources or causing unsanitized content to be delivered.