The excerpt-include macro does not properly escape the title of the included page and executes the content of the excerpt with the macro's rights. Therefore, it is vulnerable to XWiki syntax injection via the included page's title and content, allowing remote code execution for any user who can edit a page.
The title of the included page isn't escaped in ExcerptInclude.xml#L277. Further, the content of the excerpt macro is rendered to XWiki syntax and output into the macro's content such that it is executed with the macro's rights.
Exploit.{{async}}{{groovy}}println("Hello from Groovy Title!"){{/groovy}}{{/async}}.{{excerpt-include 0="Exploit.WebHome"}}{{/excerpt-include}}
{{excerpt}}
{{async}}{{groovy}}println("Hello from Groovy content!"){{/groovy}}{{/async}}
{{/excerpt}}
Remote code execution impacts the confidentiality, integrity and availability of the whole XWiki installation.
{
"github_reviewed_at": "2026-06-22T20:09:59Z",
"severity": "CRITICAL",
"cwe_ids": [
"CWE-95"
],
"github_reviewed": true,
"nvd_published_at": null
}