GitHub Advisory Database
GHSA-6xmx-85x3-4cv2
Stored XSS via SVG File Upload
Details
Impact
A user with access to the backoffice can upload SVG files that include scripts. If the user can trick another user to load the media directly in a browser, the scripts can be executed.
Workaround
Implement the server side file validation https://docs.umbraco.com/umbraco-cms/reference/security/serverside-file-validation
or
Serve all media from an different host (e.g cdn) that where umbraco is hosted
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| NuGet | Umbraco.CMS | From 7.0.0 before 7.15.11 (fixed in 7.15.11) |
| NuGet | Umbraco.CMS | From 8.0.0 before 8.18.9 (fixed in 8.18.9) |
| NuGet | Umbraco.CMS | From 9.0.0 before 10.7.0 (fixed in 10.7.0) |
| NuGet | Umbraco.CMS | From 11.0.0 before 11.5.0 (fixed in 11.5.0) |
| NuGet | Umbraco.CMS | From 12.0.0 before 12.2.0 (fixed in 12.2.0) |