CWE
79
Advisory Published
Advisory Published
Updated

CVE-2021-43841: XSS by SVG upload in xwiki-platform

First published: Fri Feb 04 2022(Updated: )

### 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)

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
maven/org.xwiki.platform:xwiki-platform-tool-configuration-resources<12.10.6
12.10.6
maven/org.xwiki.platform:xwiki-platform-tool-configuration-resources>=13.0<=13.2
13.3RC1
maven/org.xwiki.platform:xwiki-platform-oldcore>=13.0<=13.2
13.3RC1
maven/org.xwiki.platform:xwiki-platform-oldcore<12.10.6
12.10.6
Xwiki>=1.0<12.10.6
Xwiki>=13.0<=13.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-43841?

    CVE-2021-43841 is categorized as a medium severity vulnerability due to its potential for script execution through uploaded SVG files.

  • How do I fix CVE-2021-43841?

    To mitigate CVE-2021-43841, upgrade to the patched versions 12.10.6 or 13.3RC1 of the affected XWiki packages.

  • What products are affected by CVE-2021-43841?

    CVE-2021-43841 affects XWiki versions prior to 12.10.6 and between 13.0 and 13.2.

  • What type of attack does CVE-2021-43841 enable?

    CVE-2021-43841 enables attackers to upload malicious SVG files that can execute scripts upon file download.

  • Is there a workaround for CVE-2021-43841?

    While upgrading is recommended, enforcing strict file type validations may serve as a temporary workaround for CVE-2021-43841.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203