{"id":"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","details":"### Impact\n\nThe `{{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).\n\nFortunately, no such macro exists by default in XWiki Standard but one could have been created or installed with an extension.\n\n### Patches\n\nIt has been patched in versions XWiki 12.6.3, 11.10.11 and 12.8-rc-1.\n\n### Workarounds\n\nThere is no easy workaround other than disabling the affected macros.\nInserting content in a safe way or knowing what is the user who called the wiki macro is not easy.\n\n### References\n\nhttps://jira.xwiki.org/browse/XWIKI-17759\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki](https://jira.xwiki.org)\n* Email us at [our security mailing list](mailto:security@xwiki.org)","aliases":["CVE-2021-21379"],"modified":"2026-07-08T06:00:31.129515872Z","published":"2021-03-23T22:47:26Z","database_specific":{"github_reviewed_at":"2021-03-23T22:24:20Z","nvd_published_at":"2021-03-12T18:15:00Z","cwe_ids":["CWE-281"],"severity":"LOW","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-v662-xpcc-9xf6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21379"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-17759"}],"affected":[{"package":{"name":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.4"},{"fixed":"11.10.11"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-v662-xpcc-9xf6/GHSA-v662-xpcc-9xf6.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0"},{"fixed":"12.6.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-v662-xpcc-9xf6/GHSA-v662-xpcc-9xf6.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.7"},{"fixed":"12.8"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 12.7.1","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/03/GHSA-v662-xpcc-9xf6/GHSA-v662-xpcc-9xf6.json"}}],"schema_version":"1.9.0"}