Skip to main content

CVE-2023-37277 — Vulnerability in xwiki-platform-rest-server

CRITICAL

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

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

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.93%). Schedule for your next planned update.

Does your project use an affected org.xwiki.platform:xwiki-platform-rest-server version?

Paste your pom.xml to check it for CVE-2023-37277 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

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 for an example configuration.

References

Advisory Timeline

  • First published July 10, 2023 (1236 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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: Maven (3).

PackageFixed In
org.xwiki.platform:xwiki-platform-rest-server Maven · Affected: All versions15.2
org.xwiki.platform:xwiki-platform-rest-server Maven · Affected: All versions14.10.8
com.xpn.xwiki.platform:xwiki-core-rest-server Maven · Affected: All versions14.10.8
com.xpn.xwiki.platform:xwiki-rest Maven · Affected: 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. It has a 0.9% probability of exploitation within 30 days (EPSS score). 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

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.93%
EPSS percentile: 59.1

This is an above-median EPSS score — 59.1% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-6xxr-648m-gch6

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml