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

- **ID:** WPSEC-2026-3425
- **Plugin:** Easy SVG Support (`easy-svg`), https://wordpress.org/plugins/easy-svg/
- **Affected versions:** all versions before 4.2.2
- **Fixed in:** 4.2.2 (Update to 4.2.2 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/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-18)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/easy-svg
- **Fix released:** 2026-11-17
- **Published:** 2026-11-18
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3425/

## 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.2.1 due to SVG sanitization only being applied on the classic media upload prefilter, leaving uploads made through the REST API with raw file data, XML-RPC, sideloads and importers unsanitized. This makes it possible for authenticated attackers, with author-level access and above (users with the upload_files capability), to upload SVG files containing malicious scripts that execute whenever a user accesses the uploaded file.

## References

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

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

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.
