# CVE-2022-1091: Safe SVG < 1.9.10 - SVG Sanitisation Bypass

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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): 1.20%, higher than 69% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-18T17:10:54.000Z
- Modified: 2026-06-17T04:21:48.517Z
- Also known as: GHSA-5h7w-hmxc-99g5
- Weaknesses: CWE-79
- Assigned by: WPScan

## Description

The sanitisation step of the Safe SVG WordPress plugin before 1.9.10 can be bypassed by spoofing the content-type in the POST request to upload a file. Exploiting this vulnerability, an attacker will be able to perform the kinds of attacks that this plugin should prevent (mainly XSS, but depending on further use of uploaded SVG files potentially other XML attacks).

(As written by CVE List.)

## Affected

- Unknown Safe SVG: from 1.9.10 before 1.9.10
- darylldoyle/safe-svg (Packagist): before 1.9.10
- 10up safe_svg: before 1.9.10

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://wpscan.com/vulnerability/4d12533e-bdb7-411f-bcdf-4c5046db13f3> (exploit, third-party-advisory, web)
- <https://github.com/10up/safe-svg/pull/28> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1091> (advisory)
- <https://github.com/10up/safe-svg/commit/00cb9a86d1bff2214714557d1901ec3896564e50> (web)
- <https://github.com/10up/safe-svg> (package)

## Sources

- CVE List: [CVE-2022-1091](https://www.cve.org/CVERecord?id=CVE-2022-1091), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-5h7w-hmxc-99g5](https://github.com/advisories/GHSA-5h7w-hmxc-99g5), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-1091](https://nvd.nist.gov/vuln/detail/CVE-2022-1091), Public domain, modified 2026-06-17

---

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