{"cve":"CVE-2021-21379","nvd":{"published":"2021-03-12T18:15:12.873","modified":"2026-06-17T03:35:26.850","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4},"cwes":["CWE-281"],"references":["https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-v662-xpcc-9xf6","https://jira.xwiki.org/browse/XWIKI-17759","https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-v662-xpcc-9xf6","https://jira.xwiki.org/browse/XWIKI-17759"],"products":["xwiki:xwiki"],"source":"nvd","synced_at":"2026-10-19T21:15:50.279857260+00:00"},"epss":{"cve":"CVE-2021-21379","score":0.00476,"percentile":0.41117,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-v662-xpcc-9xf6","url":"https://osv.dev/vulnerability/GHSA-v662-xpcc-9xf6","summary":"It's possible to execute anything with the rights of the author of a macro which uses the {{wikimacrocontent}} macro","modified":"2026-07-08T06:00:31.129515872Z","packages":[{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","ranges":[">=11.4 <11.10.11"],"fixed":["11.10.11"]},{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","ranges":[">=12.0 <12.6.3"],"fixed":["12.6.3"]},{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","ranges":[">=12.7 <12.8"],"fixed":["12.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}