# Easy SVG Support <= 4.1 - Authenticated (Author+) Stored Cross-Site Scripting via SVG File Upload

- **ID:** WPSEC-2026-2048
- **Plugin:** Easy SVG Support (`easy-svg`), https://wordpress.org/plugins/easy-svg/
- **Affected versions:** all versions before 4.2
- **Fixed in:** 4.2 (Update to 4.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 Low, affected versions None seen (as of 2026-10-30)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/easy-svg
- **Fix released:** 2026-10-29
- **Published:** 2026-10-30
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2048/

## Description

The Easy SVG Support plugin for WordPress is vulnerable to Stored Cross-Site Scripting via SVG file uploads in all versions up to, and including, 4.1, due to the bundled enshrined/svg-sanitize 0.22.0 library allowing SMIL animation elements to change a link's href after sanitization. This makes it possible for authenticated attackers with author-level access and above to upload an SVG whose link becomes a javascript: URL in some browsers, executing when a user opens the uploaded file and clicks it.

## References

- https://wpsec.com/vuln/WPSEC-2026-2048/
- https://plugins.svn.wordpress.org/easy-svg/tags/4.2/
- https://wordpress.org/plugins/easy-svg/

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

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.
