svg-sanitizer denial of service in non-SVG root handling
darylldoyle svg-sanitizer
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| darylldoyle svg-sanitizer |
|
|
Original description
svg-sanitizer from 0.11.0 before 1.1.0 contains an uncaught exception vulnerability that allows attackers to crash callers by submitting well-formed XML without a top-level svg root. Attackers can supply documents with a non-svg root or nested svg element, causing Sanitizer::sanitize() to throw a LogicException instead of returning false, crashing workers or bypassing upload rejection.
From the CVE record · VulnCheck