# SVG Support <= 2.6.1 - Authenticated (Author+) Stored Cross-Site Scripting via SVG Animation Elements

- **ID:** WPSEC-2026-2303
- **Plugin:** SVG Support (`svg-support`), https://wordpress.org/plugins/svg-support/
- **Affected versions:** all versions before 2.6.2
- **Fixed in:** 2.6.2 (Update to 2.6.2 or later.)
- **Severity:** Medium 4.4 (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin High, affected versions High (as of 2026-11-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/svg-support
- **Fix released:** 2026-10-31
- **Published:** 2026-11-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2303/

## Description

The SVG Support plugin for WordPress is vulnerable to Stored Cross-Site Scripting via SVG animation elements in all versions up to, and including, 2.6.1. This is due to the SVG sanitizer allowing an animateTransform element whose attributeName targets a link's href and whose values attribute carries a javascript: URL, which lets the animation rewrite the link into a script URL after sanitization in WebKit browsers such as Safari. This makes it possible for authenticated attackers with Author-level access and above who are permitted to upload SVGs to inject arbitrary web scripts that execute when a user views the file and clicks the link.

## References

- https://wpsec.com/vuln/WPSEC-2026-2303/
- https://plugins.svn.wordpress.org/svg-support/tags/2.6.2/
- https://wordpress.org/plugins/svg-support/

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

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.
