7.7
CWE
281
Advisory Published
Updated

CVE-2021-21379: It's possible to execute anything with the rights of the author of a macro which uses the {{wikimacrocontent}} macro

First published: Fri Mar 12 2021(Updated: )

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions of XWiki Platform, the `{{wikimacrocontent}}` executes the content with the rights of the wiki macro author instead of the caller of that wiki macro. This makes possible to inject scripts through it and they will be executed with the rights of the wiki macro (very often a user which has Programming rights). Fortunately, no such macro exists by default in XWiki Standard but one could have been created or installed with an extension. This vulnerability has been patched in versions XWiki 12.6.3, 11.10.11 and 12.8-rc-1. There is no easy workaround other than disabling the affected macros. Inserting content in a safe way or knowing what is the user who called the wiki macro is not easy.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Xwiki>=11.4<11.10.11
Xwiki>=12.0<12.6.3
Xwiki>=12.7<=12.7.1

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-21379?

    CVE-2021-21379 has been assigned a medium severity level due to the potential for unauthorized access to sensitive content.

  • How do I fix CVE-2021-21379?

    To fix CVE-2021-21379, upgrade XWiki Platform to version 12.7.2 or later.

  • What versions of XWiki are affected by CVE-2021-21379?

    CVE-2021-21379 affects XWiki versions from 11.4 to 11.10.11 and from 12.0 to 12.6.3, as well as version 12.7.

  • What does CVE-2021-21379 exploit in XWiki Platform?

    CVE-2021-21379 exploits a vulnerability in the {{wikimacrocontent}} feature, executing content with the rights of the macro author instead of the caller.

  • Is there a workaround for CVE-2021-21379 if I cannot upgrade?

    There is no official workaround for CVE-2021-21379; upgrading to a patched version is the recommended action.

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