NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

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

highCVSS 4.0 8.7GHSA-9xc6-c2rm-f27p

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.

Published Dec 10, 2025 · Updated Dec 20, 2025

Affected packages

org.xwiki.rendering:xwiki-rendering-xml

Ecosystem
Maven
Affected
< 16.10.10
Fixed in
16.10.10
Check
mvn dependency:tree -Dincludes=org.xwiki.rendering:xwiki-rendering-xml

org.xwiki.rendering:xwiki-rendering-xml

Ecosystem
Maven
Affected
>= 17.0.0-rc-1, < 17.4.3
Fixed in
17.4.3
Check
mvn dependency:tree -Dincludes=org.xwiki.rendering:xwiki-rendering-xml

org.xwiki.rendering:xwiki-rendering-xml

Ecosystem
Maven
Affected
>= 17.5.0-rc-1, < 17.6.0-rc-1
Fixed in
17.6.0-rc-1
Check
mvn dependency:tree -Dincludes=org.xwiki.rendering:xwiki-rendering-xml

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries