CVE-2023-34464: XWiki vulnerable to stored cross-site scripting via any wiki document and the displaycontent/rendercontent template
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Starting in version 2.2.1 until versions 14.4.8, 14.10.5, and 15.1RC1 of org.xwiki.platform:xwiki-platform-web and any version prior to 14.4.8, 14.10.5, and 15.1.RC1 of org.xwiki.platform:xwiki-platform-web-templates, any user who can edit a document in a wiki like the user profile can create a stored cross-site scripting attack. The attack occurs by putting plain HTML code into that document and then tricking another user to visit that document with the displaycontent or rendercontent template and plain output syntax. If a user with programming rights is tricked into visiting such a URL, arbitrary actions be performed with this user's rights, impacting the confidentiality, integrity, and availability of the whole XWiki installation. This has been patched in XWiki 14.4.8, 14.10.5 and 15.1RC1 by setting the content type of the response to plain text when the output syntax is not an HTML syntax.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
org.xwiki.platform:xwiki-platform-webto a version that resolves this vulnerability.Fixed in 14.4.8 - Upgrade
Upgrade
org.xwiki.platform:xwiki-platform-webto a version that resolves this vulnerability.Fixed in 14.10.5 - Upgrade
Upgrade
org.xwiki.platform:xwiki-platform-webto a version that resolves this vulnerability.Fixed in 15.1RC1 - Upgrade
Upgrade
org.xwiki.platform:xwiki-platform-web-templatesto a version that resolves this vulnerability.Fixed in 14.4.8 - Upgrade
Upgrade
org.xwiki.platform:xwiki-platform-web-templatesto a version that resolves this vulnerability.Fixed in 14.10.5 - Upgrade
Upgrade
org.xwiki.platform:xwiki-platform-web-templatesto a version that resolves this vulnerability.Fixed in 15.1RC1 - Configuration
Set the response content type to plain text when using the displaycontent/rendercontent templates if the output syntax is not an HTML syntax (this is the specific mitigation introduced in XWiki 14.4.8, 14.10.5, and 15.1RC1).
XWiki displaycontent/rendercontent output Content-Type (response) when output syntax is not an HTML syntax = plain text
Event History
Frequently Asked Questions
What is CVE-2023-34464?
CVE-2023-34464 refers to a vulnerability in XWiki Platform, a generic wiki platform, that allows remote attackers to execute arbitrary code.
What is the severity of CVE-2023-34464?
The severity of CVE-2023-34464 is critical with a CVSS score of 5.4.
How does CVE-2023-34464 affect XWiki Platform?
CVE-2023-34464 affects XWiki Platform versions 2.2.1 to 14.4.8, 14.10.5, and 15.1RC1 of org.xwiki.platform:xwiki-platform-web, as well as any version prior to 14.4.8, 14.10.5, and 15.1.RC1 of org.xwiki.platform:xwiki-p.
How can I fix CVE-2023-34464 in XWiki Platform?
To fix CVE-2023-34464 in XWiki Platform, it is recommended to upgrade to version 14.4.8, 14.10.5, or 15.1RC1 of org.xwiki.platform:xwiki-platform-web or a version higher than 2.2.1 of org.xwiki.platform:xwiki-platform-web.
Are there any references for CVE-2023-34464?
Yes, you can find references for CVE-2023-34464 at the following links: [GitHub Commit](https://github.com/xwiki/xwiki-platform/commit/53e8292a31ec70fba5e1d705a4ac443658b9e6df), [GitHub Security Advisory](https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-fp7h-f9f5-x4q7), [XWiki Issue](https://jira.xwiki.org/browse/XWIKI-20290).