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

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
darylldoyle/safe-svg PackagistAll versions1.9.10
darylldoyle/safe-svg PackagistAll versions1.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.

Sources

Also known as GHSA-5h7w-hmxc-99g5.

Is CVE-2022-1091 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free