CVE-2022-1091 Safe SVG < 1.9.10 - SVG Sanitisation Bypass
Attackers can bypass SVG sanitization in the Safe SVG WordPress plugin by spoofing content types, leading to Cross-Site Scripting attacks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-1091?
CVE-2022-1091 is a medium-severity cross-site scripting vulnerability in Unknown Safe SVG, published on 18 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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).
Weakness: CWE-79
Which versions are affected by CVE-2022-1091?
2 open source packages ship an affected version, including darylldoyle/safe-svg. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
darylldoyle/safe-svg Packagist | All versions | 1.9.10 |
darylldoyle/safe-svg Packagist | All versions | 1.9.10 |
Products include 10up Safe Svg.
How do I fix CVE-2022-1091?
Upgrade darylldoyle/safe-svg to 1.9.10 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2022-1091 being exploited?
There is no known exploitation of CVE-2022-1091 in the wild and no public exploit code.
Other vulnerabilities in Unknown Safe SVG
Sources
Also known as GHSA-5h7w-hmxc-99g5.