GHSA-w56x-9778-rppx

Suggest an improvement
Source
https://github.com/advisories/GHSA-w56x-9778-rppx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-w56x-9778-rppx/GHSA-w56x-9778-rppx.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w56x-9778-rppx
Aliases
  • CVE-2026-44179
Published
2026-06-22T20:09:59Z
Modified
2026-06-22T20:15:14.147839856Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
xwiki-pro-macros has remote code execution from page title and content via excerpt-include macro
Details

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

  1. As a user without script or programming right, create a page named Exploit.
  2. In the edit screen, change the title to {{async}}{{groovy}}println("Hello from Groovy Title!"){{/groovy}}{{/async}}.
  3. Set the content to
    {{excerpt-include 0="Exploit.WebHome"}}{{/excerpt-include}}
    
    {{excerpt}}
      {{async}}{{groovy}}println("Hello from Groovy content!"){{/groovy}}{{/async}}
    {{/excerpt}}
    
  4. Save and view the page.
  5. If this displays "Hello from Groovy Title!" without the surrounding macro code or "Hello from Groovy content!", the attack succeeded.

Impact

Remote code execution impacts the confidentiality, integrity and availability of the whole XWiki installation.

Database specific
{
    "github_reviewed_at": "2026-06-22T20:09:59Z",
    "severity": "CRITICAL",
    "cwe_ids": [
        "CWE-95"
    ],
    "github_reviewed": true,
    "nvd_published_at": null
}
References

Affected packages

Maven / com.xwiki.pro:xwiki-pro-macros

Package

Name
com.xwiki.pro:xwiki-pro-macros
View open source insights on deps.dev
Purl
pkg:maven/com.xwiki.pro/xwiki-pro-macros

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.13
Fixed
1.14.5

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-w56x-9778-rppx/GHSA-w56x-9778-rppx.json"