Impact
sanitize-html between versions 2.17.7 and 2.18.0 lets an attacker bypass SMIL URL protection by using namespace-prefixed SVG animation elements. The bypass rewrites link targets to unsafe javascript: URIs, causing script execution when the link is activated. This vulnerability can lead to client-side code execution but does not provide a server-side compromise.
Affected Systems
ApostropheCMS and its on-demand sanitizer library sanitize-html are affected. Versions 2.17.7 through 2.18.0 contain the flaw while earlier and later releases are safe.
Risk and Exploitability
The CVSS score of 3.7 indicates moderate severity. No EPSS data is available and the issue is not listed in KEV, suggesting no widespread exploitation yet. The reliance on user-supplied SVG content and configuration of animation elements means attackers who can inject content may trigger the flaw, typically via XSS in a browser context.
OpenCVE Enrichment
Github GHSA