SVG Support <= 2.5.7 - Authenticated (Author+) Cross-Site Scripting via SVG

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2023-6708
CVSS Medium (5.4)
Publicly Published July 17, 2024
Last Updated August 15, 2024
Researcher Nathanial Lattimer (d0nut)
Description

The SVG Support plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the SVG upload feature in all versions up to, and including, 2.5.7 due to insufficient input sanitization and output escaping, even when the 'Sanitize SVG while uploading' feature is enabled. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Note that successful exploitation of this vulnerability requires the administrator to allow author-level users to upload SVG files. As of 2.5.6, SVG sanitization can still be bypassed by supplying a content-type other than image/svg+xml.

References

1 affected software package

Software Type Plugin
Software Slug svg-support (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 2.5.7
Patched Version
  • 2.5.8
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.