CVE-2023-45137: XWiki Platform - Stored XSS
- Cve: CVE-2023-45137
- Name: XWiki Platform - Stored XSS
- Description: 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.
- Impact: Attackers can execute arbitrary scripts in the context of other users, leading to session hijacking or defacement.
- Remediation: Update `org.xwiki.platform:xwiki-platform-web` to version 13.4-rc-1 and `org.xwiki.platform:xwiki-platform-web-templates` to versions 14.10.12 or 15.5-rc-1, or manually patch the `createinline.vm` template file with the fix.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs to create a document with malicious reference containing script code.
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00753
- Epss percentile: 0.55983
- Assignee: [email protected]
- Published at: 2023-10-25T21:15:10Z
- Age in days: 1126
- Modified at: 2026-06-17T06:28:17Z
- Patch available: yes
- Public exploits total: 2
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-45137
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-93gh-jgjj-r929 | nvd | 2023-10-25 |
| https://jira.xwiki.org/browse/XWIKI-20961 | nvd | 2023-10-25 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/xwiki/xwiki-platform/commit/ed8ec747967f8a16434806e727a57214a8843581 | Patch |
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-93gh-jgjj-r929 | Exploit, Patch, Vendor Advisory |
| https://jira.xwiki.org/browse/XWIKI-20961 | Exploit, Issue Tracking, Patch, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| xwiki:xwiki | >= 15.0, < 15.5; >= 14.0, < 14.10.12; >= 3.1.1, < 13.4; = 3.1 milestone2; = 3.1 rc1 | no | nvd | /v1/products/xwiki/xwiki |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| xwiki/xwiki-platform | commit, package, security_advisory | yes | /v1/repositories/xwiki/xwiki-platform |
Index
- Repositories: 2
- Repositories high signal: 2
- Checked, none or zero: packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2023-10-25
- Remote: yes
- Authentication required: yes
- Exposed hosts: 142594
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports