{"id":"CVE-2025-66474","aliases":["CVE-2025-66474","GHSA-9xc6-c2rm-f27p"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki vulnerable to remote code execution through insufficient protection against {{/html}} injection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nAny 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.\n\n### Patches\nThis 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.\n\nThe 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.\n\n### Workarounds\nWe're not aware of any workarounds except for upgrading the affected module to a version with a fix.","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki Rendering es un sistema de renderizado genérico que convierte la entrada textual en una sintaxis dada (sintaxis wiki, HTML, etc.) en otra sintaxis (XHTML, etc.). Las versiones 16.10.9 e inferiores, 17.0.0-rc-1 hasta 17.4.2 y 17.5.0-rc-1 hasta 17.5.0 tienen protección insuficiente contra la inyección de {{/html}}, que los atacantes pueden exploit a través de RCE. Cualquier usuario que pueda editar su propio perfil o cualquier otro documento puede ejecutar macros de script arbitrarias, incluyendo macros Groovy y Python, que permiten la ejecución remota de código, así como acceso de lectura y escritura sin restricciones a todos los contenidos wiki. Este problema está solucionado en las versiones 16.10.10, 17.4.3 y 17.6.0-rc-1.","source":"nvd"}],"published":"2025-12-10T15:47:12.000Z","modified":"2026-09-25T23:10:00.463Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-94","CWE-95"],"affected":[{"ranges":[{"version":"< 16.10.10","status":"affected"},{"version":">= 17.0.0-rc-1, < 17.4.3","status":"affected"},{"version":">= 17.5.0-rc-1, < 17.6.0-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki-rendering","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"16.10.10"}],"ecosystem":"Maven","package":"org.xwiki.rendering:xwiki-rendering-xml","purl":"pkg:maven/org.xwiki.rendering/xwiki-rendering-xml","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"17.0.0-rc-1","status":"affected","fixed":"17.4.3"}],"ecosystem":"Maven","package":"org.xwiki.rendering:xwiki-rendering-xml","purl":"pkg:maven/org.xwiki.rendering/xwiki-rendering-xml","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"17.5.0-rc-1","status":"affected","fixed":"17.6.0-rc-1"}],"ecosystem":"Maven","package":"org.xwiki.rendering:xwiki-rendering-xml","purl":"pkg:maven/org.xwiki.rendering/xwiki-rendering-xml","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"16.10.10"},{"status":"affected","introduced":"17.0.0","fixed":"17.4.3"},{"status":"affected","version":"17.5.0"},{"status":"affected","version":"17.5.0"}],"vendor":"xwiki","product":"xwiki-rendering","cpe":"cpe:2.3:a:xwiki:xwiki-rendering:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-9xc6-c2rm-f27p","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/12b780ccd5bca5fc8f74f46648d7e02fa04fbc11","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-rendering/commit/9b71a2ee035815cfc29cebbfe81dbdd98f941d49","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XRENDERING-693","tags":["exploit","patch","vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XRENDERING-792","tags":["exploit","patch","vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XRENDERING-793","tags":["exploit","patch","vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-23378","tags":["patch","vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66474","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-rendering","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-12-11T15:39:13.257Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66474","url":"https://www.cve.org/CVERecord?id=CVE-2025-66474","licence":"CVE Terms of Use","modified":"2025-12-11T15:39:27.299Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9xc6-c2rm-f27p","url":"https://github.com/advisories/GHSA-9xc6-c2rm-f27p","licence":"CC-BY-4.0","modified":"2025-12-20T05:42:42.124Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66474","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66474","licence":"Public domain","modified":"2026-09-25T23:10:00.463Z"}],"updatedAt":"2026-11-25T22:59:09.208Z","epss":{"score":0.01104,"percentile":0.66678,"date":"2026-12-01T12:00:22.000Z"}}