XWiki Rendering is a generic rendering system that converts textual input in a given syntax (wiki syntax, HTML, etc) into another syntax (XHTML, etc). Starting in version 5.4.5 and prior to version 14.10, the XHTML syntax depended on the `xdom+xml/current` syntax which allows the creation of raw blocks that permit the insertion of arbitrary HTML content including JavaScript. This allows XSS attacks for users who can edit a document like their user profile (enabled by default). This has been fixed in version 14.10 by removing the dependency on the `xdom+xml/current` syntax from the XHTML syntax. Note that the `xdom+xml` syntax is still vulnerable to this attack. As it's main purpose is testing and its use is quite difficult, this syntax shouldn't be installed or used on a regular wiki. There are no known workarounds apart from upgrading.
The XHTML syntax in XWiki Rendering had a dependency on xdom+xml/current syntax, which enables the creation of so-called raw blocks — blocks that allow injection of arbitrary HTML content, including JavaScript scripts. A user with permissions to edit any document (e.g., their own profile, which is enabled by default) can introduce a malicious payload that will be executed in the browser of the victim viewing that document. The attack does not require special administrative privileges and can be initiated remotely.
An attacker can execute arbitrary JavaScript code in the context of the victim's browser, leading to session theft, user account takeover, or access to sensitive application data. Due to the changed scope (S:C) and high impact on confidentiality, integrity, and availability, the consequences may extend beyond the current user session.
XWiki Rendering should be updated to version 14.10 or later, which removes the XHTML syntax dependency on xdom+xml/current. The vendor does not indicate any known workarounds — updating is the only effective method. It is also recommended not to install or use xdom+xml syntax in production environments, as its primary purpose is testing.
XWiki Rendering in versions 5.4.5 through earlier than 14.10. The xdom+xml syntax (without the /current suffix) remains vulnerable even after applying the patch.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:HXwiki
APPXwiki5.4.5 – 14.10 (excl.)
Related vulnerabilities
XWiki Platform — niezautoryzowany RCE przez endpoint SolrSearch
XWiki Platform — path traversal umożliwia odczyt plików konfiguracyjnych
XWiki Platform: ujawnienie plików konfiguracyjnych przez webjars API (path traversal)
SQL Injection w XWiki Platform via parametr sort w getdeleteddocuments.vm
XWiki Rendering: bypass trybu restricted przez zagnieżdżone makra