Loading HuntDB...

GHSA-fwwj-wg89-7h4c

GitHub Security Advisory

XWiki Platform vulnerable to cross-site scripting in target parameter via share page by email

✓ GitHub Reviewed HIGH Has CVE

Advisory Details

### Impact
Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS).
For instance, the following URL execute an `alter` on the browser: `<xwiki-host>/xwiki/bin/view/Main/?viewer=share&send=1&target=&target=%3Cimg+src+onerror%3Dalert%28document.domain%29%3E+%3Cimg+src+onerror%3Dalert%28document.domain%29%3E+%3Crenniepak%40intigriti.me%3E&includeDocument=inline&message=I+wanted+to+share+this+page+with+you.`, where `<xwiki-host>` is the URL of your XWiki installation.
See https://jira.xwiki.org/browse/XWIKI-20370 for me details.

### Patches

The vulnerability has been patched in XWiki 15.0-rc-1, 14.10.4, and 14.4.8.

### Workarounds
The fix is only impacting Velocity templates and page contents, so applying this [patch](https://github.com/xwiki/xwiki-platform/commit/ca88ebdefb2c9fa41490959cce9f9e62404799e7) is enough to fix the issue.

### References
https://jira.xwiki.org/browse/XWIKI-20370

### For more information

If you have any questions or comments about this advisory:

* Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)
* Email us at [Security Mailing List](mailto:[email protected])

### Attribution

This vulnerability has been reported on Intigriti by René de Sain @renniepak.

Affected Packages

Maven org.xwiki.platform:xwiki-platform-sharepage-api
Affected versions: 2.6-rc-2 (fixed in 14.4.8)
Maven org.xwiki.platform:xwiki-platform-sharepage-api
Affected versions: 14.5 (fixed in 14.10.4)

Related CVEs

Key Information

GHSA ID
GHSA-fwwj-wg89-7h4c
Published
June 20, 2023 4:48 PM
Last Modified
June 26, 2023 4:37 PM
CVSS Score
7.5 /10
Primary Ecosystem
Maven
Primary Package
org.xwiki.platform:xwiki-platform-sharepage-api
GitHub Reviewed
✓ Yes

Dataset

Last updated: September 23, 2025 6:31 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.