Vulnerability · Published Feb 4, 2022 · Assigned by GitHub_M
CVE-2021-43841XSS by SVG upload in xwiki-platform
Medium 5.4
In plain English
A medium-severity cross-site scripting in xwiki-platform from xwiki. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
XWiki is a generic wiki platform offering runtime services for applications built on top of it. 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. This problem has been patched so that the default configuration doesn't allow to display the SVG files in the browser. Users are advised to update or to disallow uploads of SVG files.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.xwiki.platform:xwiki-platform-oldcore | 12.10.6 | GHSA-9jq9-c2cv-pcrj |
| Maven | org.xwiki.platform:xwiki-platform-oldcore | 13.3RC1 | GHSA-9jq9-c2cv-pcrj |
| Maven | org.xwiki.platform:xwiki-platform-tool-configuration-resources | 13.3RC1 | GHSA-9jq9-c2cv-pcrj |
| Maven | org.xwiki.platform:xwiki-platform-tool-configuration-resources | 12.10.6 | GHSA-9jq9-c2cv-pcrj |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| xwiki | xwiki-platform | < 12.10.6>= 13.0, < 13.3RC1 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9jq9-c2cv-pcrj x_refsource_CONFIRM
- https://github.com/xwiki/xwiki-platform/commit/5853d492b3a274db0d94d560e2a5ea988a271c62 x_refsource_MISC
- https://jira.xwiki.org/browse/XWIKI-18368 x_refsource_MISC
- https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Attachments#HAttachmentdisplayordownload x_refsource_MISC