XWiki Platform vulnerable to cross-site request forgery (CSRF) via the REST API
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
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Java / Kotlin (Maven) | com.xpn.xwiki.platform:xwiki-core-rest-server | >= 1.8, < 14.10.8 | 14.10.8 |
| Java / Kotlin (Maven) | com.xpn.xwiki.platform:xwiki-rest | >= 1.8, < 14.10.8 | 14.10.8 |
| Java / Kotlin (Maven) | org.xwiki.platform:xwiki-platform-rest-server | >= 1.8, < 14.10.8, >= 15.0-rc-1, < 15.2 | 14.10.8, 15.2 |
Referencias
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H- Debilidad (CWE)
CWE-352- Plataforma
- Java / Kotlin (Maven)
- Paquete
com.xpn.xwiki.platform:xwiki-core-rest-server, com.xpn.xwiki.platform:xwiki-rest, org.xwiki.platform:xwiki-platform-rest-server- Publicada
- 10.07.2023
- Actualizado
- 11.10.2026 13:19
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-6xxr-648m-gch6 - CC BY 4.0
Historial de vulnerabilidades: org.xwiki.platform:xwiki-platform-rest-server
Todas las vulnerabilidades publicadas de este paquete (Java / Kotlin (Maven)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 11
- Primera → última
- 11.2022 05.2026
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Crítica 4
- Alta 4
- Media 3
Divulgaciones por año
- 2022: 1
- 2023: 2
- 2024: 1
- 2025: 6
- 2026: 1
-
XWiki Platform vulnerable to cross-site request forgery (CSRF) via the REST API esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.