Loading...
Skip to main content

CVE-2023-37277 — Vulnerability in...

CRITICAL

XWiki Platform vulnerable to cross-site request forgery (CSRF) via the REST API

Published July 10, 2023Updated September 10, 2026Source: osv

Summary

### Impact The REST API allows executing all actions via POST requests and accepts `text/plain`, `multipart/form-data` or `application/www-form-urlencoded` as content types which can be sent via regular HTML forms, thus allowing cross-site request forgery. With the interaction of a user with programming rights, this allows remote code execution through script macros and thus impacts the integrity, availability and confidentiality of the whole XWiki installation. For regular cookie-based authentication, the vulnerability is mitigated by SameSite cookie restrictions but as of March 2023, these are not enabled by default in Firefox and Safari. ### Patches The vulnerability has been patched in XWiki 14.10.8 and 15.2 by requiring a CSRF token header for certain request types that are susceptible to CSRF attacks. ### Workarounds It is possible to check for the `Origin` header in a reverse proxy to protect the REST endpoint from CSRF attacks, see [the Jira issue](https://jira.xwiki.org/browse/XWIKI-20135) for an example configuration. ### References * https://jira.xwiki.org/browse/XWIKI-20135 * https://github.com/xwiki/xwiki-platform/commit/4c175405faa0e62437df397811c7526dfc0fbae7

Advisory Timeline

  • First published July 10, 2023 (1190 days ago).
  • Last revised September 10, 2026 — 1157 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.xwiki.platform:xwiki-platform-rest-server to 15.2 or later
<!-- Update pom.xml dependency version to 15.2 for org.xwiki.platform:xwiki-platform-rest-server -->
Maven
Update org.xwiki.platform:xwiki-platform-rest-server to 14.10.8 or later
<!-- Update pom.xml dependency version to 14.10.8 for org.xwiki.platform:xwiki-platform-rest-server -->
Maven
Update com.xpn.xwiki.platform:xwiki-core-rest-server to 14.10.8 or later
<!-- Update pom.xml dependency version to 14.10.8 for com.xpn.xwiki.platform:xwiki-core-rest-server -->
Maven
Update com.xpn.xwiki.platform:xwiki-rest to 14.10.8 or later
<!-- Update pom.xml dependency version to 14.10.8 for com.xpn.xwiki.platform:xwiki-rest -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: maven (3).

PackageEcosystemAffectedFixed In
org.xwiki.platform:xwiki-platform-rest-server
maven
All versions15.2
org.xwiki.platform:xwiki-platform-rest-server
maven
All versions14.10.8
com.xpn.xwiki.platform:xwiki-core-rest-server
maven
All versions14.10.8
com.xpn.xwiki.platform:xwiki-rest
maven
All versions14.10.8

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-352
    Cross-Site Request Forgery (CSRF)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2023-37277?
XWiki Platform vulnerable to cross-site request forgery (CSRF) via the REST API This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.6/10).
How do I check if my project is affected by CVE-2023-37277?
CVE-2023-37277 affects org.xwiki.platform:xwiki-platform-rest-server, com.xpn.xwiki.platform:xwiki-core-rest-server and com.xpn.xwiki.platform:xwiki-rest. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-37277 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.6

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-6xxr-648m-gch6

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies