It's possible to execute anything with the rights of the author of a macro which uses the {{wikimacrocontent}} macro
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| XWiki | xwiki-platform | 11.4.0 to before 11.10.11; 12.0.0 to before 12.6.3; 12.7.0 to before 12.8-rc-1 | 11.10.11, 12.6.3, 12.8-rc-1 | Patch available | CNA |
| — | org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) | 11.4 to before 11.10.11 | 11.10.11 | Patch available | GHSA-v662-xpcc-9xf6 |
| — | org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) | 12.0 to before 12.6.3 | 12.6.3 | Patch available | GHSA-v662-xpcc-9xf6 |
| — | org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) | 12.7 to before 12.8 | 12.8 | Patch available | GHSA-v662-xpcc-9xf6 |
- xwiki-platform VendorXWiki Affected 11.4.0 to before 11.10.11; 12.0.0 to before 12.6.3; 12.7.0 to before 12.8-rc-1 Fixed in 11.10.11, 12.6.3, 12.8-rc-1 Patch available CNA
- org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Vendor— Affected 11.4 to before 11.10.11 Fixed in 11.10.11 Patch available GHSA-v662-xpcc-9xf6
- org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Vendor— Affected 12.0 to before 12.6.3 Fixed in 12.6.3 Patch available GHSA-v662-xpcc-9xf6
- org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Vendor— Affected 12.7 to before 12.8 Fixed in 12.8 Patch available GHSA-v662-xpcc-9xf6
Remediation
- Fix · CNA xwiki-platform (xwiki) Fixed in 11.10.11, 12.6.3, 12.8-rc-1
- Fix · GHSA-v662-xpcc-9xf6 org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Fixed in 11.10.11 Advisory →
- Fix · GHSA-v662-xpcc-9xf6 org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Fixed in 12.6.3 Advisory →
- Fix · GHSA-v662-xpcc-9xf6 org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Fixed in 12.8 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-21379
- 2026-10-03 Alias added: GHSA-v662-xpcc-9xf6
References
More Xwiki vulnerabilities
- TI-2025-18595 Remote code execution as guest via SolrSearchMacros request in xwiki KEVCVSS 3.1CRITICAL 9.8
- TI-2023-25214 Remote code execution through the section parameter in Administration as guest in XWiki Platform CVSS 3.1CRITICAL 10.0
- TI-2025-23500 XWiki Platform vulnerable to SQL injection through getdeleteddocuments.vm template sort parameter CVSS 4.0CRITICAL 9.3
- TI-2025-23979 org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API CVSS 4.0CRITICAL 9.3
- TI-2024-20829 XWiki Platform: Remote code execution from account via SearchSuggestSourceSheet CVSS 3.1CRITICAL 10.0
- TI-2024-14375 XWiki Remote Code Execution vulnerability via user registration CVSS 3.1CRITICAL 10.0
Sources
- CVE-2021-21379 · CVE Program
- CVE-2021-21379 · NVD
- FIRST EPSS
- GHSA-v662-xpcc-9xf6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences