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)
- Affected
- from 4.0 before 4.6
- Remediation
- Update to 4.6 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Weakness
- CWE-79
- Usage
- Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-21
- Attack surface
- WP SVG Images on WPSec AttackSurface
- Fix released
- Published
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/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS