SVGO's removeScripts Plugin Potentially Leaves Executable Scripts Intact
An early warning has been issued regarding SVGO's removeScripts plugin, which reportedly leaves some executable scripts intact, potentially leading to XSS vulnerabilities. This issue is under investigation.
What happened
The SVGO removeScripts plugin appears to fail in removing namespaced script elements and case-insensitively matching JavaScript URIs, which could result in executable scripts remaining in the output. This vulnerability is being investigated and is tracked under GHSA-2P49-HGCM-8545.
Affected versions of SVGO include multiple ranges from 1.0.0 to 4.0.2, with fixes available in versions 2.8.3, 3.3.4, and 4.0.2 among others. It is recommended to upgrade to the latest version of svgo and consider additional sanitization methods for SVGs to mitigate potential risks.
For detailed information and the latest updates, consult the primary source at https://github.com/svg/svgo/security/advisories/GHSA-2p49-hgcm-8545. Professional software engineers should review their use of SVGO and assess their exposure to this potential vulnerability.
How 0Day mitigates this
svgo is anywhere in your dependency tree, the engineers who own the affected repositories get a push alert the moment it is flagged — no manual audit to remember to run.Read how this differs from waiting on a scanner to catch a known advisory, or see the exact, read-only access 0Day needs to do this for an organization.