CVE-2023-35160
JSON

9.7critical

XWiki Platform vulnerable to reflected cross-site scripting via back and xcontinue parameters in resubmit template

Severity
9.7critical CVSS:3.1 by GitHub_M
Exploit likelihood
3.65% (higher than 90% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-r8xc-xxh3-q5x3

Description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS). It's possible to exploit the resubmit template to perform a XSS, e.g. by using URL such as: > xwiki/bin/view/XWiki/Main xpage=resubmit&resubmit=javascript:alert(document.domain)&xback=javascript:alert(document.domain). This vulnerability exists since XWiki 2.5-milestone-2. The vulnerability has been patched in XWiki 14.10.5 and 15.1-rc-1.

Affected

Product or packageVersionsReported by
xwiki xwiki-platform>= 2.5-milestone-2, < 14.10.5, >= 15.0-rc-1, < 15.1-rc-1CVE List
org.xwiki.platform:xwiki-platform-web-templates (Maven)from 2.5-milestone-2 before 14.10.5, from 15.0-rc-1 before 15.1-rc-1GitHub Advisory Database
xwiki xwikifrom 3.0 before 14.10.5, 2.5, 15.0NVD

All scores

GitHub_M9.7critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
GitHub9.6critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79CWE-87

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS). It's possible to exploit the resubmit template to perform a XSS, e.g. by using URL such as: > xwiki/bin/view/XWiki/Main xpage=resubmit&resubmit=javascript:alert(document.domain)&xback=javascript:alert(document.domain). This vulnerability exists since XWiki 2.5-milestone-2. The vulnerability has been patched in XWiki 14.10.5 and 15.1-rc-1.

GitHub Advisory Database
Impact

Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS). It's possible to exploit the resubmit template to perform a XSS, e.g. by using URL such as:

xwiki/bin/view/XWiki/Main?xpage=resubmit&resubmit=javascript:alert(document.domain)&xback=javascript:alert(document.domain)

This vulnerability exists since XWiki 2.5-milestone-2.

Patches

The vulnerability has been patched in XWiki 14.10.5 and 15.1-rc-1.

Workarounds

It's possible to workaround the vulnerability by editing the template resubmit.vm to perform checks on it, but note that the appropriate fix involves new APIs that have been recently introduced in XWiki. See the referenced jira tickets.

References
For more information

If you have any questions or comments about this advisory:

Attribution

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

References

Sources

SourceRecordLicence
CVE ListCVE-2023-35160 changed 2024-11-27CVE Terms of Use
GitHub Advisory DatabaseGHSA-r8xc-xxh3-q5x3 changed 2026-09-10CC-BY-4.0
NVDCVE-2023-35160 changed 2026-06-17Public domain