# CVE-2023-45135: XWiki users can be tricked to execute scripts as the create page action doesn't display the page's title

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 3.02% (percentile 88, 2026-11-26)
- **CWE:** CWE-116
- **Aliases:** GHSA-ghf6-2f42-mjh9
- **Published:** 2023-10-25T19:29:04.882Z
- **Modified:** 2026-06-17T06:28:17.333Z

## Who should check

- Projects that depend on Maven package org.xwiki.platform:xwiki-platform-web-templates (\< 14.10.12)
- Projects that depend on Maven package org.xwiki.platform:xwiki-platform-web (\>= 7.2-milestone-2, \< 14.10.12)
- Anyone running xwiki-platform \>= 7.2-milestone-2, \< 14.10.12; \>= 15.0-rc-1, \< 15.5-rc-1

## Description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In \`org.xwiki.platform:xwiki-platform-web\` versions 7.2-milestone-2 until 14.10.12 and \`org.xwiki.platform:xwiki-platform-web-templates\` prior to versions 14.10.12 and 15.5-rc-1, it is possible to pass a title to the page creation action that isn't displayed at first but then executed in the second step. This can be used by an attacker to trick a victim to execute code, allowing script execution if the victim has script right or remote code execution including full access to the XWiki instance if the victim has programming right.

For the attack to work, the attacker needs to convince the victim to visit a link like \`\<xwiki-host\>/xwiki/bin/create/NonExistingSpace/WebHome?title=$services.logging.getLogger(%22foo%22).error(%22Script%20executed!%22)\` where \`\<xwiki-host\>\`  is the URL of the Wiki installation and to then click on the "Create" button on that page. The page looks like a regular XWiki page that the victim would also see when clicking the button to create a page that doesn't exist yet, the malicious code is not displayed anywhere on that page. After clicking the "Create" button, the malicious title would be displayed but at this point, the code has already been executed and the attacker could use this code also to hide the attack, e.g., by redirecting the victim again to the same page with an innocent title. It thus seems plausible that this attack could work if the attacker can place a fake "create page" button on a page which is possible with edit right.

This has been patched in \`org.xwiki.platform:xwiki-platform-web\` version 14.10.12 and \`org.xwiki.platform:xwiki-platform-web-templates\` versions 14.10.12 and 15.5-rc-1 by displaying the title already in the first step such that the victim can notice the attack before continuing. It is possible to manually patch the modified files from the patch in an existing installation. For the JavaScript change, the minified JavaScript file would need to be obtained from a build of XWiki and replaced accordingly.

## Affected and fixed versions

- Maven `org.xwiki.platform:xwiki-platform-web-templates`: affected \< 14.10.12; fixed 14.10.12, 15.5-rc-1 (osv)
- Maven `org.xwiki.platform:xwiki-platform-web`: affected \>= 7.2-milestone-2, \< 14.10.12; fixed 14.10.12 (osv)
- xwiki-platform: \>= 7.2-milestone-2, \< 14.10.12; \>= 15.0-rc-1, \< 15.5-rc-1 (cvelist)

## Mitigation

- Upgrade org.xwiki.platform:xwiki-platform-web-templates to one of 14.10.12, 15.5-rc-1 (or later in the same release line).
- Upgrade org.xwiki.platform:xwiki-platform-web to 14.10.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-45135. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-45135.md
Affected: org.xwiki.platform:xwiki-platform-web-templates < 14.10.12; org.xwiki.platform:xwiki-platform-web >= 7.2-milestone-2, < 14.10.12
Fixed in: 14.10.12, 15.5-rc-1

Steps:
1. Search this machine and project for org.xwiki.platform:xwiki-platform-web-templates (Maven), org.xwiki.platform:xwiki-platform-web (Maven), xwiki-platform: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-45135 being exploited?

There is no confirmed exploitation: CVE-2023-45135 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 3.02% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-45135?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-45135?

org.xwiki.platform:xwiki-platform-web-templates \< 14.10.12; org.xwiki.platform:xwiki-platform-web \>= 7.2-milestone-2, \< 14.10.12.

### Is there a fix for CVE-2023-45135?

Yes. Fixed in 14.10.12, 15.5-rc-1. Upgrade org.xwiki.platform:xwiki-platform-web-templates to one of 14.10.12, 15.5-rc-1 (or later in the same release line). Upgrade org.xwiki.platform:xwiki-platform-web to 14.10.12 or later.

### How do I check if I'm affected by CVE-2023-45135?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-ghf6-2f42-mjh9>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-45135>
- patch: <https://github.com/xwiki/xwiki-platform/commit/199e27ce7016757e66fa7cea99e718044a1b639b>
- exploit: <https://jira.xwiki.org/browse/XWIKI-20869>
- other: <https://github.com/xwiki/xwiki-platform>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-45135>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-ghf6-2f42-mjh9> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-45135> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-45135>
