Cross site scripting in safe-svg
Date: 2022-04
Affected: composer/darylldoyle/safe-svg
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2022-1091
CWE: CWE-79
CVSS: 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

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).


Mitigations:

Architectural layers (MAESTRO):