GHSA-9jq9-c2cv-pcrj
Cross-site Scripting by SVG upload in xwiki-platform
Quick fix
GHSA-9jq9-c2cv-pcrj — org.xwiki.platform:xwiki-platform-oldcore: upgrade to the fixed version with the command below.
# pom.xml: bump <version>12.10.6</version> for org.xwiki.platform:xwiki-platform-oldcoreDetails
### Impact When using default XWiki configuration, it's possible for an attacker to upload an SVG containing a script executed when executing the download action on the file.
### Patches This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser.
### Workarounds This issue can be fixed without the patch by setting properly the configuration to download or display files, see: https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Attachments#HAttachmentdisplayordownload
### References https://jira.xwiki.org/browse/XWIKI-18368
### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira](http://jira.xwiki.org) * Email us at [security ML](mailto:security@xwiki.org)
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 12.10.6# pom.xml: bump <version>12.10.6</version> for org.xwiki.platform:xwiki-platform-oldcore13.0Fixed in: 13.3RC1# pom.xml: bump <version>13.3RC1</version> for org.xwiki.platform:xwiki-platform-oldcore13.0Fixed in: 13.3RC1# pom.xml: bump <version>13.3RC1</version> for org.xwiki.platform:xwiki-platform-tool-configuration-resources0Fixed in: 12.10.6# pom.xml: bump <version>12.10.6</version> for org.xwiki.platform:xwiki-platform-tool-configuration-resourcesReferences
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9jq9-c2cv-pcrj[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2021-43841[ADVISORY]
- https://github.com/xwiki/xwiki-platform/commit/5853d492b3a274db0d94d560e2a5ea988a271c62[WEB]
- https://github.com/xwiki/xwiki-platform[WEB]
- https://jira.xwiki.org/browse/XWIKI-18368[WEB]
- https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Attachments#HAttachmentdisplayordownload[WEB]