CVE-2021-43841
Cross-site Scripting by SVG upload in xwiki-platform
Description
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
- Email us at security ML
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.xwiki.platform » xwiki-platform-oldcore | < 12.10.6>= 13.0, < 13.3RC1 | 12.10.6, 13.3RC1 |
| org.xwiki.platform » xwiki-platform-tool-configuration-resources | < 12.10.6>= 13.0, < 13.3RC1 | 12.10.6, 13.3RC1 |
Blast radius
57% of the dependent artifacts (504) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 24,341 |
| 2 hops | 23,455 |
| 3 hops | 10,207 |
| 4 hops | 1,873 |
| 5 hops | 116 |
| 6 hops | 2 |
Most used dependents
- org.xwiki.platform » xwiki-platform-test-docker101 usages
- org.xwiki.platform » xwiki-platform-rest-server85 usages
- org.xwiki.platform » xwiki-platform-tool-packager-plugin77 usages
- org.xwiki.platform » xwiki-platform-administration-ui75 usages
- org.xwiki.platform » xwiki-platform-test-page72 usages
- org.xwiki.platform » xwiki-platform-test-oldcore71 usages
- org.xwiki.platform » xwiki-platform-panels-ui62 usages
- org.xwiki.platform » xwiki-platform-configuration-default57 usages
- org.phenotips » patient-data-api52 usages
- com.xwiki.licensing » application-licensing-licensor-api51 usages
- org.xwiki.platform » xwiki-platform-skin-skinx49 usages
- org.xwiki.platform » xwiki-platform-livetable-ui48 usages
- org.xwiki.platform » xwiki-platform-rendering-wikimacro-store47 usages
- org.xwiki.platform » xwiki-platform-uiextension-api47 usages
- org.phenotips » vocabularies-api46 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2021-43841 | nvd.nist.gov |
| Web | xwiki/xwiki-platform advisory GHSA-9jq9-c2cv-pcrj | github.com |
| Web | xwiki/xwiki-platform commit 5853d49 | github.com |
| Web | xwiki/xwiki-platform | github.com |
| Web | browse/XWIKI-18368 | jira.xwiki.org |
| Web | xwiki/bin/view/Documentation/AdminGuide/Attachments | xwiki.org |
