Vulnerabilities / WP SVG Images / WPSEC-2026-3659

WP SVG Images <= 4.5 - Authenticated (Author+) Stored Cross-Site Scripting via SVG File Upload Sanitization Bypass

Medium 6.4 CWE-79Fixed in 4.6
ID
WPSEC-2026-3659
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:N/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 SVG file uploads in all versions up to, and including, 4.5. This is due to sanitization running only when the detected MIME type of the content was SVG, while files were accepted and served as SVG based on their .svg or .svgz extension. A file starting with a comment or a line break, or any .svgz file, could therefore skip sanitization, and sideloaded files were not covered either. This makes it possible for authenticated attackers with author-level access and above, or any role allowed to upload SVG files, to inject arbitrary web scripts that execute whenever a user accesses the uploaded file.

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