XWiki Platform vulnerable to privilege escalation via async macro and IconThemeSheet from the user profile
Description
XWiki Platform is a generic wiki platform. Starting in version 6.2-milestone-1, one can execute any wiki content with the right of IconThemeSheet author by creating an icon theme with certain content. This can be done by creating a new page or even through the user profile for users not having edit right. The issue has been patched in XWiki 14.9, 14.4.6, and 13.10.10. An available workaround is to fix the bug in the page IconThemesCode.IconThemeSheet by applying a modification from commit 48caf7491595238af2b531026a614221d5d61f38.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.xwiki.platform:xwiki-platform-icon-uiMaven | >= 6.2-milestone-1, < 13.10.10 | 13.10.10 |
org.xwiki.platform:xwiki-platform-icon-uiMaven | >= 14.0, < 14.4.6 | 14.4.6 |
org.xwiki.platform:xwiki-platform-icon-uiMaven | >= 14.5, < 14.9 | 14.9 |
Affected products
1- Range: >= 6.2-milestone-1, < 13.10.10
Patches
148caf7491595XWIKI-19731: Fix escaping
2 files changed · +3 −65
xwiki-platform-core/xwiki-platform-icon/xwiki-platform-icon-test/xwiki-platform-icon-test-docker/src/test/it/org/xwiki/icon/test/ui/IconThemesSheetIT.java+0 −61 removed@@ -1,61 +0,0 @@ -/* - * See the NOTICE file distributed with this work for additional - * information regarding copyright ownership. - * - * This is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation; either version 2.1 of - * the License, or (at your option) any later version. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this software; if not, write to the Free - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA - * 02110-1301 USA, or see the FSF site: http://www.fsf.org. - */ -package org.xwiki.icon.test.ui; - -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Order; -import org.junit.jupiter.api.Test; -import org.openqa.selenium.By; -import org.xwiki.test.docker.junit5.TestReference; -import org.xwiki.test.docker.junit5.UITest; -import org.xwiki.test.ui.TestUtils; - -import static org.junit.jupiter.api.Assertions.assertTrue; - -/** - * Functional tests of the icon theme sheet. - * - * @version $Id$ - */ -@UITest -class IconThemesSheetIT -{ - @BeforeEach - void setUp(TestUtils testUtils) - { - // Login as superadmin to define the preferences. - testUtils.loginAsSuperAdmin(); - } - - @Test - @Order(1) - void createIconTheme(TestUtils testUtils, TestReference testReference) throws Exception - { - testUtils.createPage(testReference, ")))**not bold**"); - testUtils.addObject(testReference, "IconThemesCode.IconThemeClass"); - - testUtils.gotoPage(testReference); - - String content = testUtils.getDriver().findElementWithoutWaiting(By.id("xwikicontent")).getText(); - - // Make sure the wiki syntax was not interpreted - assertTrue(content.contains("**not bold**")); - } -}
xwiki-platform-core/xwiki-platform-icon/xwiki-platform-icon-ui/src/main/resources/IconThemesCode/IconThemeSheet.xml+3 −4 modified@@ -42,10 +42,9 @@ This document is an Icon Theme. {{/info}} - -{{{ -$doc.content.replace('}}}', '~}}}') -}}} +(%class="code"%)((( +$services.rendering.escape($doc.content, 'xwiki/2.1') +))) #else Sheet of [[IconThemesCode.IconThemeClass]] #end
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-vwr6-qp4q-2wj7ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-26472ghsaADVISORY
- github.com/xwiki/xwiki-platform/commit/48caf7491595238af2b531026a614221d5d61f38ghsax_refsource_MISCWEB
- github.com/xwiki/xwiki-platform/security/advisories/GHSA-vwr6-qp4q-2wj7ghsax_refsource_CONFIRMWEB
- jira.xwiki.org/browse/XWIKI-19731ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.