Safe SVG <= 2.2.5 - Authenticated (Author+) Stored Cross-Site Scripting via SVG

5.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2024-8378
CVSS 5.4 (Medium)
Publicly Published October 17, 2024
Last Updated December 12, 2024
Researcher Alexander Concha

Description

The Safe SVG plugin for WordPress is vulnerable to Stored Cross-Site Scripting via SVG File uploads in all versions up to, and including, 2.2.5 due to insufficient input sanitization and output escaping. 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 the SVG file.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Safe SVG

Software Type Plugin
Software Slug safe-svg (view on wordpress.org)
Patched? Yes
Remediation Update to version 2.2.6, or a newer patched version
Affected Version
  • <= 2.2.5
Patched Version
  • 2.2.6

Recent vulnerabilities in Safe SVG

# Title CVE ID CVSS Researchers Date
1 Safe SVG <= 2.5.0 - Authenticated (Contributor+) Insecure Direct Object Reference CVE-2026-94672 4.3 Ananda Dhakal September 23, 2026
2 Safe SVG <= 2.5.0 - Authenticated (Contributor+) Stored Cross-Site Scripting CVE-2026-94077 6.4 spectreDeveloper September 23, 2026
3 SVG Sanitizer library <= 0.15.4 - Cross-Site Scripting Bypass CVE-2023-28426 7.2 Cyxow March 23, 2023
4 Safe SVG <= 1.9.9 - Content-Type Bypass CVE-2022-1091 7.7 David Hamann March 25, 2022
5 Safe SVG <= 1.9.5 - Cross-Site Scripting 5.4 0xd0ff9 November 8, 2019
6 Safe SVG <= 1.9.4 - Denial of Service CVE-2019-18855 6.5 Nguyen Thanh Nguyen November 5, 2019
7 Safe SVG <= 1.9.4 - Denial of Service CVE-2019-18854 6.5 Nguyen Thanh Nguyen November 5, 2019

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation