# CVE-2023-35157: XWiki Platform vulnerable to reflected cross-site scripting via delattachment action

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

- **Severity:** HIGH 8.5
- **CVSS:** 8.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: High; 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:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.00% (percentile 62, 2026-11-26)
- **CWE:** CWE-80, CWE-79
- **Aliases:** GHSA-phwm-87rg-27qq
- **Published:** 2023-06-22T19:59:25.000Z
- **Modified:** 2026-09-10T03:50:08.464Z

## Who should check

- Projects that depend on Maven package org.xwiki.platform:xwiki-platform-oldcore (\>= 3.2-milestone-3, \< 14.10.6)
- Anyone running xwiki-platform \>= 3.2-milestone-3, \< 14.10.6; \>= 15.0-rc-0, \< 15.1-rc-1

## Description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. It's possible to perform an XSS by forging a request to a delete attachment action with a specific attachment name. Now this XSS can be exploited only if the attacker knows the CSRF token of the user, or if the user ignores the warning about the missing CSRF token. The vulnerability has been patched in XWiki 15.1-rc-1 and XWiki 14.10.6.

## Affected and fixed versions

- Maven `org.xwiki.platform:xwiki-platform-oldcore`: affected \>= 3.2-milestone-3, \< 14.10.6; fixed 14.10.6, 15.1-rc-1 (osv)
- xwiki-platform: \>= 3.2-milestone-3, \< 14.10.6; \>= 15.0-rc-0, \< 15.1-rc-1 (cvelist)

## Mitigation

- Upgrade org.xwiki.platform:xwiki-platform-oldcore to one of 14.10.6, 15.1-rc-1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-35157.md
Affected: org.xwiki.platform:xwiki-platform-oldcore >= 3.2-milestone-3, < 14.10.6
Fixed in: 14.10.6, 15.1-rc-1

Steps:
1. Search this machine and project for org.xwiki.platform:xwiki-platform-oldcore (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-35157 being exploited?

There is no confirmed exploitation: CVE-2023-35157 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.00% chance of exploitation in the next 30 days (as of 2026-11-26).

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

High: CVSS 8.5 (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-35157?

org.xwiki.platform:xwiki-platform-oldcore \>= 3.2-milestone-3, \< 14.10.6.

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

Yes. Fixed in 14.10.6, 15.1-rc-1. Upgrade org.xwiki.platform:xwiki-platform-oldcore to one of 14.10.6, 15.1-rc-1 (or later in the same release line).

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

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-phwm-87rg-27qq>
- vendor: <https://jira.xwiki.org/browse/XWIKI-20339>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-35157>
- patch: <https://github.com/xwiki/xwiki-platform/commit/35e9073ffec567861e0abeea072bd97921a3decf>
- 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-35157>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-phwm-87rg-27qq> (license: <https://creativecommons.org/licenses/by/4.0/>)

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