Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-21379

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-21379
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:39 UTC · Revision 1

Source evidence

CVE-2021-21379

core-osv · Original source

Published 12 Mar 2021, 18:15 UTC

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.

osv:CVE-2021-21379
Complete source record
{
  "id": "205fa153f359edc3682a741ffed2248232c9cd1c26a06bfea2cbc7bcca45fbb2",
  "url": "https://osv.dev/vulnerability/CVE-2021-21379",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-21379",
    "summary": "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.",
    "evidence": "osv:CVE-2021-21379",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-21379",
      "aliases": [
        "CVE-2021-21379",
        "GHSA-v662-xpcc-9xf6"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/xwiki/xwiki-commons",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5a18b5ea0dc3a2e963592d3d377f8b24bef456b9"
                },
                {
                  "fixed": "564b182d7f1ac2f4a377402aa6932c9fcb79f14a"
                },
                {
                  "introduced": "0cfc1b3397ce969321409dfc47730c703c330305"
                },
                {
                  "fixed": "efca524187dbf4339e6a83ebf115b7160f84e3d4"
                },
                {
                  "introduced": "bf36e69ee28dd996e846d5ab9b131712b643bb4e"
                },
                {
                  "last_affected": "e0d0dd0059ebbe624e292e5d5342578992c1fe4a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "11.4"
                      },
                      {
                        "fixed": "11.10.11"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "12.0"
                      },
                      {
                        "fixed": "12.6.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "12.7"
                      },
                      {
                        "last_affected": "12.7.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "xwiki-commons-12.7.1",
            "xwiki-commons-12.7"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21379.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/xwiki/xwiki-platform",
              "type": "GIT",
              "events": [
                {
                  "introduced": "f146356beec7716468bb14b0954798090ec67489"
                },
                {
                  "fixed": "75ba7238e2776f5e4c02ac169b0b638f49fc73c8"
                },
                {
                  "introduced": "06d635e2672df934233b04c097afef29f62587da"
                },
                {
                  "fixed": "e4053a8b2f2182ddca099099e35b1d30098eaf25"
                },
                {
                  "introduced": "51217c93c66345dd99c93605060f30ec8d1c36ee"
                },
                {
                  "last_affected": "61395e04f82d2de417f9ec2e52ddd9bbb60f7f65"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "11.4"
                      },
                      {
                        "fixed": "11.10.11"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "12.0"
                      },
                      {
                        "fixed": "12.6.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "12.7"
                      },
                      {
                        "last_affected": "12.7.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "xwiki-platform-12.7.1",
            "xwiki-platform-12.7"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21379.json"
          }
        }
      ],
      "modified": "2026-10-24T10:47:52.573998610Z",
      "provider": "osv",
      "references": [
        "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-v662-xpcc-9xf6",
        "https://jira.xwiki.org/browse/XWIKI-17759"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-21379",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 441586,
  "published_at": "2021-03-12T18:15:12.873+00:00"
}