xwiki-pro-macros has remote code execution from page title and content via excerpt-include macro
Critical severity
GitHub Reviewed
Published
Jun 21, 2026
in
xwikisas/xwiki-pro-macros
•
Updated Jun 22, 2026
Package
Affected versions
>= 1.13, < 1.14.5
Patched versions
1.14.5
Description
Published to the GitHub Advisory Database
Jun 22, 2026
Reviewed
Jun 22, 2026
Last updated
Jun 22, 2026
Summary
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.
Details
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.
PoC
Exploit.{{async}}{{groovy}}println("Hello from Groovy Title!"){{/groovy}}{{/async}}.Impact
Remote code execution impacts the confidentiality, integrity and availability of the whole XWiki installation.
References