Skip to content

CVE-2022-4022 SVG Support 2.5 - 2.5.1 - Insecure Plugin Defaults to Cross-Site Scripting

MediumCVSS 5.4 EPSS 0.55%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
WordPress

Description

The SVG Support plugin for WordPress defaults to insecure settings in version 2.5 and 2.5.1. SVG files containing malicious javascript are not sanitized. While version 2.5 adds the ability to sanitize image as they are uploaded, the plugin defaults to disable sanitization and does not restrict SVG upload to only administrators. This allows authenticated attackers, with author-level privileges and higher, to upload malicious SVG files that can be embedded in posts and pages by higher privileged users. Additionally, the embedded JavaScript is also triggered on visiting the image URL, which allows an attacker to execute malicious code in browsers visiting that URL.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
Benbodhi SVG Support = 2.5; = 2.5.1; >= 2.5.0, < 2.5.2 2.5.2 Fixed
wordpress svg-support(WordPress) >= 2.5, < 2.5.2 2.5.2 Fixed

Affected products

ProductAffected versionsFixed in
Benbodhi SVG Support = 2.5 No fix listed
Benbodhi SVG Support = 2.5.1 No fix listed
Benbodhi SVG Support >= 2.5.0, < 2.5.2 2.5.2
wordpress svg-support(WordPress) >= 2.5, < 2.5.2 2.5.2

References