CVE-2025-66474: XWiki vulnerable to remote code execution through insufficient protection against {{/html}} injection

Published Dec 10, 2025
·
Updated

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 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 has been applied in org.xwiki.platform:xwiki-platform-oldcore as an extra safety net, see 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.

Other sources

XWiki Rendering is a generic rendering system that converts textual input in a given syntax (wiki syntax, HTML, etc) into another syntax (XHTML, etc). Versions 16.10.9 and below, 17.0.0-rc-1 through 17.4.2 and 17.5.0-rc-1 through 17.5.0 have insufficient protection against {{/html}} injection, which attackers can exploit through RCE. Any user who can edit their own profile or any other document can execute arbitrary script macros, including Groovy and Python macros, which enable remote code execution as well as unrestricted read and write access to all wiki contents. This issue is fixed in versions 16.10.10, 17.4.3 and 17.6.0-rc-1.

MITRE

Affected Software

7 affected componentsFixes available
maven/org.xwiki.rendering:xwiki-rendering-xml>=17.5.0-rc-1<17.6.0-rc-1
17.6.0-rc-1
maven/org.xwiki.rendering:xwiki-rendering-xml>=17.0.0-rc-1<17.4.3
17.4.3
maven/org.xwiki.rendering:xwiki-rendering-xml<16.10.10
16.10.10
XWiki xwiki-rendering<16.10.10
XWiki xwiki-rendering>=17.0.0<17.4.3
XWiki xwiki-rendering=17.5.0
XWiki xwiki-rendering=17.5.0-rc1

Event History

Dec 10, 2025
Advisory Published
via GitHub·03:47 PM
Data Sourced
via GitHub·03:47 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·09:59 PM
Data Sourced
via MITRE·09:59 PM
DescriptionWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
RemedyAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-66474?

CVE-2025-66474 is considered a critical vulnerability due to the potential for remote code execution and unauthorized access to sensitive wiki content.

2

How do I fix CVE-2025-66474?

To fix CVE-2025-66474, update the affected XWiki rendering package to version 17.6.0-rc-1, 17.4.3, or 16.10.10 as appropriate.

3

What are the potential impacts of CVE-2025-66474?

CVE-2025-66474 allows any user with profile editing rights to execute arbitrary script macros, leading to unrestricted access to all wiki contents.

4

Which versions are affected by CVE-2025-66474?

CVE-2025-66474 affects XWiki rendering versions from 17.0.0-rc-1 to 17.5.0-rc-1, and below 17.4.3 and 16.10.10.

5

Is user authentication effective against CVE-2025-66474?

User authentication alone is not sufficient to mitigate CVE-2025-66474, as it exploits the ability of users to run their own scripts.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203