cve.bz

CVE-2021-21379 xwiki xwiki: Improper Preservation of Permissions

5.4 mediumEPSS 0.5%Fix available

Medium (5.4) in xwiki xwiki. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in org.xwiki.platform:xwiki-platform-rendering-wikimacro-store 11.10.11, 12.6.3, 12.8.

On this page
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.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-281 Improper Preservation of Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21379 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21379?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21379?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21379 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xwiki:xwikifrom 11.4 before 11.10.11
xwiki:xwikifrom 12.0 before 12.6.3
xwiki:xwikifrom 12.7 through 12.7.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v662-xpcc-9xf6Mavenorg.xwiki.platform:xwiki-platform-rendering-wikimacro-store>=11.4 <11.10.1111.10.11
GHSA-v662-xpcc-9xf6Mavenorg.xwiki.platform:xwiki-platform-rendering-wikimacro-store>=12.0 <12.6.312.6.3
GHSA-v662-xpcc-9xf6Mavenorg.xwiki.platform:xwiki-platform-rendering-wikimacro-store>=12.7 <12.812.8

References

Check your stackJSON