{"id":"CVE-2023-35162","summary":"XPlatform Wiki vulnerable to cross-site scripting via xcontinue parameter in preview actions 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 previewactions template to perform a XSS, e.g. by using URL such as: \u003e \u003chostname\u003e/xwiki/bin/get/FlamingoThemes/Cerulean xpage=xpart&vm=previewactions.vm&xcontinue=javascript:alert(document.domain). This vulnerability exists since XWiki 6.1-rc-1. The vulnerability has been patched in XWiki 14.10.5 and 15.1-rc-1.","aliases":["GHSA-q9hg-9qj2-mxf9"],"modified":"2026-08-12T03:51:33.064239125Z","published":"2023-06-23T18:52:19.725Z","database_specific":{"cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/35xxx/CVE-2023-35162.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-20342"},{"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-35162.json"},{"type":"ADVISORY","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-q9hg-9qj2-mxf9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-35162"},{"type":"FIX","url":"https://github.com/xwiki/xwiki-platform/commit/9f01166b1a8ee9639666099eb5040302df067e4d"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/xwiki/xwiki-commons","events":[{"introduced":"c7b2fe24e1384a01ffebb4feaf1566a8bbbde153"},{"fixed":"8dfb9fcb4f456c70f82ea670ca0e2f3dee373ee4"},{"introduced":"e4fc52610e9a8fb76a5cbe2e1282077e5757d18f"},{"last_affected":"029f39adf510c8be3c4b6cf8b75ba1abdc622aee"}],"database_specific":{"source":["CPE_RANGE","CPE_STRING"],"cpe":["cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","cpe:2.3:a:xwiki:xwiki:6.1:-:*:*:*:*:*:*","cpe:2.3:a:xwiki:xwiki:6.1:milestone1:*:*:*:*:*:*","cpe:2.3:a:xwiki:xwiki:6.1:milestone2:*:*:*:*:*:*"],"extracted_events":[{"introduced":"6.2"},{"fixed":"14.10.5"},{"introduced":"6.1-NA"},{"last_affected":"6.1-NA"},{"introduced":"6.1-milestone1"},{"last_affected":"6.1-milestone1"},{"introduced":"6.1-milestone2"},{"last_affected":"6.1-milestone2"}]}},{"type":"GIT","repo":"https://github.com/xwiki/xwiki-platform","events":[{"introduced":"c427b927d0904c5989881dbf21d3f486eb0bf4ed"},{"fixed":"0cb75bab7ac0c3ecbd0429e88726435b55970c8e"},{"introduced":"9ef3ab7e28c42689836581232bf27ef84c15d80d"},{"fixed":"9f01166b1a8ee9639666099eb5040302df067e4d"}],"database_specific":{"cpe":["cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","cpe:2.3:a:xwiki:xwiki:6.1:-:*:*:*:*:*:*","cpe:2.3:a:xwiki:xwiki:6.1:milestone1:*:*:*:*:*:*","cpe:2.3:a:xwiki:xwiki:6.1:milestone2:*:*:*:*:*:*"],"extracted_events":[{"introduced":"6.2"},{"fixed":"14.10.5"},{"introduced":"6.1-NA"},{"last_affected":"6.1-NA"},{"introduced":"6.1-milestone1"},{"last_affected":"6.1-milestone1"},{"introduced":"6.1-milestone2"},{"last_affected":"6.1-milestone2"}],"source":["CPE_RANGE","CPE_STRING","REFERENCES"]}}],"versions":["6.1-NA","6.1-milestone1","6.1-milestone2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-35162.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"}]}