Loading...
Skip to main content

CVE-2025-66474 — Vulnerability in...

HIGH

XWiki vulnerable to remote code execution through insufficient protection against {{/html}} injection

Published December 10, 2025Updated December 20, 2025Source: osv

Summary

### Impact Any user who can edit their own user profile or any other document can execute arbitrary script macros including Groovy and Python macros that allow remote code execution including unrestricted read and write access to all wiki contents. The reason is that rendering output is included as content of HTML macros with insufficient escaping, and it is thus possible to close the HTML macro and inject script macros that are executed with programming rights. To demonstrate, the content `{{html}}{{/html {{/html}}}}` can be inserted into any field of the user profile that supports wiki syntax like the "About" field. If this leads to the display of raw HTML, the instance is vulnerable. ### Patches This problem has been patched by extending the escaping introduced by [XRENDERING-693](https://jira.xwiki.org/browse/XRENDERING-693) to also cover closing HTML macros that have spaces after the macro name in XWiki 16.10.10, 17.4.3 and 17.6.0RC1. A [similar fix](https://github.com/xwiki/xwiki-platform/commit/12b780ccd5bca5fc8f74f46648d7e02fa04fbc11) has been applied in `org.xwiki.platform:xwiki-platform-oldcore` as an extra safety net, see [XWIKI-23378](https://jira.xwiki.org/browse/XWIKI-23378). At this point, we're not aware that this extra safety net would be required for security. The patch also fixes the injection of opening HTML macro syntaxes, e.g., with `{{html}}{{html{{/html}}}}` which disrupts the rendering of the user profile but for which we haven't found any further security impact apart from the disruption of the UI. ### Workarounds We're not aware of any workarounds except for upgrading the affected module to a version with a fix.

Advisory Timeline

  • First published December 10, 2025 (306 days ago).
  • Last revised December 20, 2025 — 10 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.xwiki.rendering:xwiki-rendering-xml to 17.4.3 or later
<!-- Update pom.xml dependency version to 17.4.3 for org.xwiki.rendering:xwiki-rendering-xml -->
Maven
Update org.xwiki.rendering:xwiki-rendering-xml to 16.10.10 or later
<!-- Update pom.xml dependency version to 16.10.10 for org.xwiki.rendering:xwiki-rendering-xml -->
Maven
Update org.xwiki.rendering:xwiki-rendering-xml to 17.6.0-rc-1 or later
<!-- Update pom.xml dependency version to 17.6.0-rc-1 for org.xwiki.rendering:xwiki-rendering-xml -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.xwiki.rendering:xwiki-rendering-xml
maven
17.0.0, 17.0.0-rc-1, 17.1.0, 17.1.0-rc-1 (+10 more)17.4.3
org.xwiki.rendering:xwiki-rendering-xml
maven
10.0, 10.1, 10.1-rc-1, 10.10 (+452 more)16.10.10
org.xwiki.rendering:xwiki-rendering-xml
maven
17.5.017.6.0-rc-1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Frequently Asked Questions

What is CVE-2025-66474?
XWiki vulnerable to remote code execution through insufficient protection against {{/html}} injection This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2025-66474?
CVE-2025-66474 affects org.xwiki.rendering:xwiki-rendering-xml. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-66474 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-9xc6-c2rm-f27p

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies