CVE-2024-31988
XWiki Platform CSRF remote code execution through the realtime HTML Converter API
Also known as GHSA-r5vh-gc3r-r24w
Mitigation
- Upgrade org.xwiki.platform:xwiki-platform-realtime-ui to one of 14.10.19, 15.5.4, 15.9 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.xwiki.platform:xwiki-platform-realtime-ui (>= 13.9-rc-1, < 14.10.19)
- Anyone running xwiki-platform >= 13.9-rc-1, < 14.10.19; >= 15.0-rc-1, < 15.5.4; >= 15.6-rc-1, < 15.9
Vulnerability facts
- Affected
- org.xwiki.platform:xwiki-platform-realtime-ui >= 13.9-rc-1, < 14.10.19
- Fixed in
- 14.10.19, 15.5.4, 15.9
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 1.57% chance of exploitation in 30 days (percentile 76, 2026-11-26)
- CWE
- CWE-352
- Modified
Description
XWiki Platform is a generic wiki platform. Starting in version 13.9-rc-1 and prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, when the realtime editor is installed in XWiki, it allows arbitrary remote code execution with the interaction of an admin user with programming right. More precisely, by getting an admin user to either visit a crafted URL or to view an image with this URL that could be in a comment, the attacker can get the admin to execute arbitrary XWiki syntax including scripting macros with Groovy or Python code. This compromises the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9. As a workaround, one may update `RTFrontend.ConvertHTML` manually with the patch. This will, however, break some synchronization processes in the realtime editor, so upgrading should be the preferred way on installations where this editor is used.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.xwiki.platform:xwiki-platform-realtime-ui | >= 13.9-rc-1, < 14.10.19 | 14.10.19, 15.5.4, 15.9 | osv |
| xwiki-platform | >= 13.9-rc-1, < 14.10.19; >= 15.0-rc-1, < 15.5.4; >= 15.6-rc-1, < 15.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-31988. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-31988.md Affected: org.xwiki.platform:xwiki-platform-realtime-ui >= 13.9-rc-1, < 14.10.19 Fixed in: 14.10.19, 15.5.4, 15.9 Steps: 1. Search this machine and project for org.xwiki.platform:xwiki-platform-realtime-ui (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.
References
Vendor advisories
Patches
- https://github.com/xwiki/xwiki-platform/commit/4896712ee6483da623f131be2e618f1f2b79cb8d
- https://github.com/xwiki/xwiki-platform/commit/9f8cc88497418750b09ce9fde5d67d840f038fbf
- https://github.com/xwiki/xwiki-platform/commit/d88da4572fb7d4f95e1f54bb0cce33fce3df08d9
- https://github.com/xwiki/xwiki-platform/commit/d9f5043da289ff106f08e23576746fd8baf98794
Exploits and PoCs
FAQ
Is CVE-2024-31988 being exploited?
There is no confirmed exploitation: CVE-2024-31988 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.57% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-31988?
Critical: CVSS 9.7 (v3.1, scored by CNA). Remote, no 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-2024-31988?
org.xwiki.platform:xwiki-platform-realtime-ui >= 13.9-rc-1, < 14.10.19.
Is there a fix for CVE-2024-31988?
Yes. Fixed in 14.10.19, 15.5.4, 15.9. Upgrade org.xwiki.platform:xwiki-platform-realtime-ui to one of 14.10.19, 15.5.4, 15.9 (or later in the same release line).
How do I check if I'm affected by CVE-2024-31988?
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.