Vulnerability · Published Apr 18, 2022 · Assigned by WPScan
CVE-2022-1091Safe SVG < 1.9.10 - SVG Sanitisation Bypass
Medium 6.1
In plain English
A medium-severity cross-site scripting in Safe SVG from Unknown. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | darylldoyle/safe-svg | 1.9.10 | GHSA-5h7w-hmxc-99g5 |
Affected products (as reported)
Weakness: CWE-79
References
- https://wpscan.com/vulnerability/4d12533e-bdb7-411f-bcdf-4c5046db13f3 x_refsource_MISC
- https://github.com/10up/safe-svg/pull/28 x_refsource_CONFIRM