Description
darylldoyle svg-sanitizer from 1.0.0 before 1.1.0 contains a regular expression denial of service vulnerability in the image-set pattern of stripRemoteCssTokens() when removeRemoteReferences is enabled. Attackers can submit SVGs with many unclosed image-set tokens to exhaust CPU, or trigger PCRE limits causing sanitize() to throw a TypeError and leave unsanitized content.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| darylldoyle | svg-sanitizer | 1.0.0 – < 1.1.0 | 1.1.0 |
References
- GitHub Security Advisory (GHSA-94x8-pw3c-6qcq) vendor-advisory
- VulnCheck Advisory: svg-sanitizer 1.0.0 before 1.1.0 ReDoS and Fail-Open via image-set CSS Stripping third-party-advisory