{"id":"CVE-2023-35158","summary":"XWiki Platform vulnerable to reflected cross-site scripting via xredirect parameter in restore template","details":"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: \u003e /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. ","aliases":["GHSA-mwxj-g7fw-7hc8"],"modified":"2026-07-11T03:55:06.598571313Z","published":"2023-06-23T18:26:37.121Z","database_specific":{"cwe_ids":["CWE-87"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/35xxx/CVE-2023-35158.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-20352"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-20583"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/35xxx/CVE-2023-35158.json"},{"type":"ADVISORY","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-mwxj-g7fw-7hc8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-35158"},{"type":"FIX","url":"https://github.com/xwiki/xwiki-platform/commit/d5472100606c8355ed44ada273e91df91f682738"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/xwiki/xwiki-commons","events":[{"introduced":"5d9b843b53012bd07504f3caa092afc2379314e6"},{"fixed":"8dfb9fcb4f456c70f82ea670ca0e2f3dee373ee4"},{"introduced":"c1b8e0f1b9fc661a03e1899da6655ed5c7984433"}],"database_specific":{"cpe":["cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","cpe:2.3:a:xwiki:xwiki:9.4:-:*:*:*:*:*:*","cpe:2.3:a:xwiki:xwiki:9.4:rc-1:*:*:*:*:*:*","cpe:2.3:a:xwiki:xwiki:15.0:-:*:*:*:*:*:*"],"extracted_events":[{"introduced":"9.4"},{"fixed":"14.10.5"},{"introduced":"9.4-NA"},{"last_affected":"9.4-NA"},{"introduced":"9.4-rc\\-1"},{"last_affected":"9.4-rc\\-1"},{"introduced":"15.0-NA"},{"last_affected":"15.0-NA"}],"source":["CPE_RANGE","CPE_STRING"]}},{"type":"GIT","repo":"https://github.com/xwiki/xwiki-platform","events":[{"introduced":"8e3eba25af152f00028e5daedda783114e4d8680"},{"fixed":"0cb75bab7ac0c3ecbd0429e88726435b55970c8e"},{"introduced":"5e66d5ffffeedaa28a731c304a173e2f5a35a60d"},{"fixed":"d5472100606c8355ed44ada273e91df91f682738"}],"database_specific":{"extracted_events":[{"introduced":"9.4"},{"fixed":"14.10.5"},{"introduced":"9.4-NA"},{"last_affected":"9.4-NA"},{"introduced":"9.4-rc\\-1"},{"last_affected":"9.4-rc\\-1"},{"introduced":"15.0-NA"},{"last_affected":"15.0-NA"}],"source":["CPE_RANGE","CPE_STRING","REFERENCES"],"cpe":["cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","cpe:2.3:a:xwiki:xwiki:9.4:-:*:*:*:*:*:*","cpe:2.3:a:xwiki:xwiki:9.4:rc-1:*:*:*:*:*:*","cpe:2.3:a:xwiki:xwiki:15.0:-:*:*:*:*:*:*"]}}],"versions":["15.0-NA","9.4-rc\\-1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-35158.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"}]}