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

Published 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.

Affected Software

3 affected components
XWiki xwiki>=11.4<11.10.11
XWiki xwiki>=12.0<12.6.3
XWiki xwiki>=12.7<=12.7.1

Event History

Mar 12, 2021
CVE Published
via MITRE·05:30 PM
Data Sourced
via MITRE·05:30 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

How do I fix CVE-2021-21379?

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

3

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.

4

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.

5

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203