High

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

  • Disclosed: 20.06.2023
  • Updated: 11.10.2026 11:21

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 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:

Attribution

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

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.xwiki.platform:xwiki-platform-sharepage-api >= 2.6-rc-2, < 14.4.8, >= 14.5, < 14.10.4 14.4.8, 14.10.4

References

CVSS score 8.8/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:L
Weakness (CWE)
CWE-79
Platform
Java / Kotlin (Maven)
Package
org.xwiki.platform:xwiki-platform-sharepage-api
Disclosed
20.06.2023
Updated
11.10.2026 11:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-fwwj-wg89-7h4c - CC BY 4.0

Vulnerability history: org.xwiki.platform:xwiki-platform-sharepage-api

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.