# CVE-2023-35158: XWiki Platform vulnerable to reflected cross-site scripting via xredirect parameter in restore template

- Severity: Critical 9.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.65%, higher than 90% of CVEs (2026-11-30)
- Published: 2023-06-22T19:59:33.000Z
- Modified: 2026-09-10T03:50:08.439Z
- Also known as: GHSA-mwxj-g7fw-7hc8
- Weaknesses: CWE-87
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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 restore template to perform a XSS, e.g. by using URL such as: > /xwiki/bin/view/XWiki/Main?xpage=restore&showBatch=true&xredirect=javascript:alert(document.domain). This vulnerability exists since XWiki 9.4-rc-1. The vulnerability has been patched in XWiki 14.10.5 and 15.1-rc-1.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 9.4-rc-1, < 14.10.5; >= 15.0-rc-1, < 15.1-rc-1
- org.xwiki.platform:xwiki-platform-flamingo-skin-resources (Maven): from 9.4-rc-1 before 14.10.5; from 15.0-rc-1 before 15.1-rc-1
- xwiki xwiki: from 9.4 before 14.10.5; 9.4; 15.0

## Every score

- GitHub_M: CVSS:3.1 9.7 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-mwxj-g7fw-7hc8> (vendor-advisory, web)
- <https://github.com/xwiki/xwiki-platform/commit/d5472100606c8355ed44ada273e91df91f682738> (patch, vendor-advisory, web)
- <https://jira.xwiki.org/browse/XWIKI-20352> (issue-tracking, vendor-advisory, web)
- <https://jira.xwiki.org/browse/XWIKI-20583> (issue-tracking, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-35158> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2023-35158](https://www.cve.org/CVERecord?id=CVE-2023-35158), CVE Terms of Use, modified 2024-11-27
- GitHub Advisory Database: [GHSA-mwxj-g7fw-7hc8](https://github.com/advisories/GHSA-mwxj-g7fw-7hc8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-35158](https://nvd.nist.gov/vuln/detail/CVE-2023-35158), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-35158 · Whole record: https://cve.day/CVE-2023-35158.json · Rebuilt by cve.day 2026-11-25T22:58:25.192Z
