# CVE-2022-4022: The SVG Support plugin for WordPress defaults to insecure settings in version 2.5 and 2.5.1.

- Severity: Medium 6.4 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2022-11-16T13:23:44.784Z
- Modified: 2026-06-17T05:19:46.963Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Wordfence

## 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.

(As written by CVE List.)

## Affected

- benbodhi SVG Support: 2.5; 2.5.1
- benbodhi svg_support: from 2.5.0 before 2.5.2

## Every score

- Wordfence: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=2776612%40svg-support%2Ftrunk&old=2672900%40svg-support%2Ftrunk&sfp_email=&sfph_mail=> (patch, third-party-advisory)
- <https://www.wordfence.com/vulnerability-advisories-continued/#CVE-2022-4022> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-4022](https://www.cve.org/CVERecord?id=CVE-2022-4022), CVE Terms of Use, modified 2025-02-07
- NVD: [CVE-2022-4022](https://nvd.nist.gov/vuln/detail/CVE-2022-4022), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-4022 · Whole record: https://cve.day/CVE-2022-4022.json · Rebuilt by cve.day 2026-11-25T22:58:16.554Z
