Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.rendering/xwiki-rendering-xml
  4. ›
  5. CVE-2025-66474

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

December 10, 2025 (updated December 11, 2025)

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.

References

  • github.com/advisories/GHSA-9xc6-c2rm-f27p
  • github.com/xwiki/xwiki-platform/commit/12b780ccd5bca5fc8f74f46648d7e02fa04fbc11
  • github.com/xwiki/xwiki-rendering
  • github.com/xwiki/xwiki-rendering/commit/9b71a2ee035815cfc29cebbfe81dbdd98f941d49
  • github.com/xwiki/xwiki-rendering/security/advisories/GHSA-9xc6-c2rm-f27p
  • jira.xwiki.org/browse/XRENDERING-693
  • jira.xwiki.org/browse/XRENDERING-792
  • jira.xwiki.org/browse/XRENDERING-793
  • jira.xwiki.org/browse/XWIKI-23378
  • nvd.nist.gov/vuln/detail/CVE-2025-66474

Code Behaviors & Features

Detect and mitigate CVE-2025-66474 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 16.10.10, all versions starting from 17.0.0-rc-1 before 17.4.3, all versions starting from 17.5.0-rc-1 before 17.6.0-rc-1

Fixed versions

  • 16.10.10
  • 17.4.3
  • 17.6.0-rc-1

Solution

Upgrade to versions 16.10.10, 17.4.3, 17.6.0-rc-1 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Source file

maven/org.xwiki.rendering/xwiki-rendering-xml/CVE-2025-66474.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 14 Dec 2025 00:19:16 +0000.