XSS in XWiki Platform Web (org.xwiki.platform:xwiki-platform-web) <13.4-rc-1
CVE-2023-45137 Published on October 25, 2023
XWiki Platform XSS with edit right in the create document form for existing pages
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. `org.xwiki.platform:xwiki-platform-web` starting in version 3.1-milestone-2 and prior to version 13.4-rc-1, as well as `org.xwiki.platform:xwiki-platform-web-templates` prior to versions 14.10.12 and 15.5-rc-1, are vulnerable to cross-site scripting. When trying to create a document that already exists, XWiki displays an error message in the form for creating it. Due to missing escaping, this error message is vulnerable to raw HTML injection and thus XSS. The injected code is the document reference of the existing document so this requires that the attacker first creates a non-empty document whose name contains the attack code. This has been patched in `org.xwiki.platform:xwiki-platform-web` version 13.4-rc-1 and `org.xwiki.platform:xwiki-platform-web-templates` versions 14.10.12 and 15.5-rc-1 by adding the appropriate escaping. The vulnerable template file `createinline.vm` is part of XWiki's WAR and can be patched by manually applying the changes from the fix.
Vulnerability Analysis
CVE-2023-45137 can be exploited with network access, requires user interaction and a small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be critical as this vulnerability has a high impact to the confidentiality, integrity and availability of this component.
Weakness Type
What is a XSS Vulnerability?
The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CVE-2023-45137 has been classified to as a XSS vulnerability or weakness.
Products Associated with CVE-2023-45137
Want to know whenever a new CVE is published for Xwiki? stack.watch will email you.
Affected Versions
xwiki-platform:- Version >= 3.1-milestone-2, < 13.4-rc-1 is affected.
- Version >= 14.0-rc-1, < 14.10.12 is affected.
- Version >= 15.0-rc-1, < 15.5-rc-1 is affected.
- Version 3.1-milestone-2 and below 13.4-rc-1 is affected.
- Version 14.0-rc-1 and below 14.10.12 is affected.
- Version 5.0-rc-1 and below 15.5-rc-1 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2023-45137
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| maven | org.xwiki.platform:xwiki-platform-web-templates | < 14.10.12 | 14.10.12 |
| maven | org.xwiki.platform:xwiki-platform-web-templates | >= 15.0-rc-1, < 15.5-rc-1 | 15.5-rc-1 |
| maven | org.xwiki.platform:xwiki-platform-web | >= 3.1-milestone-2, < 13.4-rc-1 | 13.4-rc-1 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.