Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-21379

HIGH 7.7EPSS 33%

It's possible to execute anything with the rights of the author of a macro which uses the {{wikimacrocontent}} macro

Also known as GHSA-v662-xpcc-9xf6

Mitigation

  • Upgrade org.xwiki.platform:xwiki-platform-rendering-wikimacro-store to one of 11.10.11, 12.6.3, 12.8 (or later in the same release line).

Who should check

  • Projects that depend on Maven package org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (>= 11.4, < 11.10.11)
  • Anyone running xwiki-platform >= 11.4.0, < 11.10.11; >= 12.0.0, < 12.6.3; >= 12.7.0, < 12.8-rc-1

Vulnerability facts

Affected
org.xwiki.platform:xwiki-platform-rendering-wikimacro-store >= 11.4, < 11.10.11
Fixed in
11.10.11, 12.6.3, 12.8
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
7.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: Required
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: None
EPSS
0.48% chance of exploitation in 30 days (percentile 33, 2026-11-26)
CWE
CWE-281
Published
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.

Affected and fixed versions

Package / productAffectedFixedSource
Maven org.xwiki.platform:xwiki-platform-rendering-wikimacro-store>= 11.4, < 11.10.1111.10.11, 12.6.3, 12.8osv
xwiki-platform>= 11.4.0, < 11.10.11; >= 12.0.0, < 12.6.3; >= 12.7.0, < 12.8-rc-1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-21379. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-21379.md
Affected: org.xwiki.platform:xwiki-platform-rendering-wikimacro-store >= 11.4, < 11.10.11
Fixed in: 11.10.11, 12.6.3, 12.8

Steps:
1. Search this machine and project for org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven), xwiki-platform: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-21379 being exploited?

There is no confirmed exploitation: CVE-2021-21379 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.48% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-21379?

High: CVSS 7.7 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2021-21379?

org.xwiki.platform:xwiki-platform-rendering-wikimacro-store >= 11.4, < 11.10.11.

Is there a fix for CVE-2021-21379?

Yes. Fixed in 11.10.11, 12.6.3, 12.8. Upgrade org.xwiki.platform:xwiki-platform-rendering-wikimacro-store to one of 11.10.11, 12.6.3, 12.8 (or later in the same release line).

How do I check if I'm affected by CVE-2021-21379?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors