CVE-2025-53835 — Vulnerability in xwiki-rendering-syntax-xhtml
XWiki Rendering is vulnerable to XSS attacks through insecure XHTML syntax
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.06%). Schedule for your next planned update.
Does your project use an affected org.xwiki.rendering:xwiki-rendering-syntax-xhtml version?
Paste your pom.xml to check it for CVE-2025-53835 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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
<document><p><metadata><metadata><entry><string>syntax</string><org.xwiki.rendering.syntax.Syntax><type><name>XHTML</name><id>xhtml</id><variants class="empty-list"></variants></type><version>5</version></org.xwiki.rendering.syntax.Syntax></entry></metadata></metadata></p><rawtext syntax="html/5.0" content="<script>alert(1);</script>"></rawtext></document>
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
Advisory Timeline
- First published July 14, 2025 (500 days ago).
- Last revised September 10, 2026 — 422 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 14.10 for org.xwiki.rendering:xwiki-rendering-syntax-xhtml -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.xwiki.rendering:xwiki-rendering-syntax-xhtml Maven · Affected: 10.0, 10.1, 10.1-rc-1, 10.10 (+317 more) | 14.10 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
- CWE-80
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-w3wh-g4m9-783pWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-53835ADVISORY
- https://github.com/xwiki/xwiki-rendering/commit/a4ca31f99f524b9456c64150d6f375984aa81ea7WEB
- https://github.com/xwiki/xwiki-renderingPACKAGE
- https://jira.xwiki.org/browse/XRENDERING-660WEB
Frequently Asked Questions
- What is CVE-2025-53835?
- XWiki Rendering is vulnerable to XSS attacks through insecure XHTML syntax. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.0/10).
- How do I check if my project is affected by CVE-2025-53835?
- CVE-2025-53835 affects org.xwiki.rendering:xwiki-rendering-syntax-xhtml. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-53835 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 64% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2025-53837CRITICAL
org.xwiki.rendering:xwiki-rendering-xml has an Eval Injection issue
- CVE-2025-53836CRITICAL
XWiki Rendering is vulnerable to RCE attacks when processing nested macros
- CVE-2023-37908CRITICAL
org.xwiki.rendering:xwiki-rendering-xml Improper Neutralization of Invalid Characters in Identifiers in Web Pages vulnerability
- CVE-2023-32070CRITICAL
Improper Neutralization of Script in Attributes in XWiki (X)HTML renderers
- CVE-2026-107726CRITICAL
Hazelcast allows arbitrary member memory access by low-privileged client
- CVE-2026-107282CRITICAL
AsyncHttpClient: Replay to a different host sends the original host request and credentials to the new host
- CVE-2025-66474HIGH
XWiki vulnerable to remote code execution through insufficient protection against {{/html}} injection