# WP SVG Images <= 4.5 - Authenticated (Author+) Stored Cross-Site Scripting via SVG Animation Elements and URL Attributes

- **ID:** WPSEC-2026-3660
- **Plugin:** WP SVG Images (`wp-svg-images`), https://wordpress.org/plugins/wp-svg-images/
- **Affected versions:** from 4.0 before 4.6
- **Fixed in:** 4.6 (Update to 4.6 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-svg-images
- **Fix released:** 2026-11-20
- **Published:** 2026-11-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3660/

## Description

The WP SVG Images plugin for WordPress is vulnerable to Stored Cross-Site Scripting via uploaded SVG files in all versions up to, and including, 4.5. This is due to insufficient sanitization in the bundled SVG sanitizer. Animation elements and the attributeName attribute were allowed without restriction, so an animation could change a link's href to a javascript: URL after sanitization, which runs in Safari and other WebKit browsers. The href check was also case-sensitive on the attribute name. This makes it possible for authenticated attackers with author-level access and above, or any role allowed to upload sanitized SVG files, to inject arbitrary web scripts that execute when a user opens the uploaded file and clicks a link in it.

## References

- https://wpsec.com/vuln/WPSEC-2026-3660/
- https://plugins.svn.wordpress.org/wp-svg-images/tags/4.6/
- https://wordpress.org/plugins/wp-svg-images/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3660/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
