Vulnerabilities / WP SVG Images / WPSEC-2026-3660

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

Medium 5.4 CWE-79Fixed in 4.6
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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON or Markdown · All advisories: JSON, RSS

License: CC BY 4.0