GHSA-gf8j-v8x5-h9qphigh7.5
XSS in enshrined/svg-sanitize due to mishandled script and data values in attributes
Impact
enshrined/svg-sanitize before 0.12.0 mishandles script and data values in attributes, as demonstrated by unexpected whitespace such as in the javascript&9;:alert substring.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
enshrined/svg-sanitize Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 0.12.0Ecosystem versions | 0.12.0 |
Version evidence: OSV · GHSA-gf8j-v8x5-h9qp
View original version evidence (29 explicit versions)
Original source description
enshrined/svg-sanitize before 0.12.0 mishandles script and data values in attributes, as demonstrated by unexpected whitespace such as in the javascript :alert substring.