GitHub Advisoryadvisory · Maven

GHSA-w3wh-g4m9-783p XWiki Rendering is vulnerable to XSS attacks through insecure XHTML syntax

CRITICAL Published 2025-07-14 Modified 2025-07-15 Official page ↗
Aliases
CVE-2025-53835
Ecosystem
Maven
Packages
org.xwiki.rendering:xwiki-rendering-syntax-xhtml
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Weaknesses
CWE-79, CWE-80
Reviewed
2025-07-14

Affected packages

• Maven org.xwiki.rendering:xwiki-rendering-syntax-xhtml: >= 5.4.5, < 14.10 → fixed in 14.10

Description

Impact 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). The attack works by setting the document's syntax to `xdom+xml/current` and then inserting content like ``` syntaxXHTMLxhtml5 ``` This has been fixed 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. We're currently not aware of any further dependencies on it. Patches The fix of removing the dependency has been included in XWiki 14.10. It is not released for earlier versions due to the potential breakages, among others this change makes it necessary to update the Confluence XHTML syntax as it relies on internals that were changed for the fix. Similar XSS fixes were also not applied to the LTS version 13.10.x due to the potential breakages. Workarounds There are no known workarounds apart from upgrading. References • https://jira.xwiki.org/browse/XRENDERING-660 • https://github.com/xwiki/xwiki-rendering/commit/a4ca31f99f524b9456c64150d6f375984aa81ea7 For more information If you have any questions or comments about this advisory: • Open an issue in Jira XWiki.org • Email us at Security Mailing List

Related

Alias · CVE (1)

  • CVE-2025-53835 XWiki Rendering is a generic rendering system that converts textual input in a given syntax (wiki syntax, HTML, etc) into another syntax… vulnerability

Weakness · CWE (2)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness
  • CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page weakness

References