GitHub Advisory Database
GHSA-5h7w-hmxc-99g5
Cross site scripting in safe-svg
Details
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | darylldoyle/safe-svg | All versions before 1.9.10 (fixed in 1.9.10) |