Medium, CVSS 6.1PackagistPublished
Cross site scripting in safe-svg
CVE-2022-1091 · GHSA-5h7w-hmxc-99g5
- Affected
- Packagist darylldoyle/safe-svg < 1.9.10
- Fixed in
- 1.9.10· Vendor fix available
- Issue
- 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).
Recommended action: Upgrade to 1.9.10 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.