CVE-2021-21379
published high CVSS 3.1 · 7.7It's possible to execute anything with the rights of the author of a macro which uses the {{wikimacrocontent}} macro
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| xwiki | — | xwiki-platform>= 11.4.0, < 11.10.11 · >= 12.0.0, < 12.6.3 · >= 12.7.0, < 12.8-rc-1 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| xwiki | xwiki-platform | >= 11.4.0, < 11.10.11 (affected)>= 12.0.0, < 12.6.3 (affected)>= 12.7.0, < 12.8-rc-1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-281 CWE-281 Improper Preservation of Permissions
References
2Provider assertions
2GitHub_M · cna
It's possible to execute anything with the rights of the author of a macro which uses the {{wikimacrocontent}} macro
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9f1682274c9215b508c2c35b50ba44112832c03c0c7ab90e80c1f7c9e04f8e50
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record