CVE-2026-40104: XWiki Platform Oldcore and Legacy Oldcore REST API Resource Exhaustion Vulnerability
Summary
CVE-2026-40104: XWiki's REST APIs can list all pages/spaces, leading to unavailability. Affects org.xwiki.platform:xwiki-platform-oldcore across 3 version ranges.
>= 1.8-rc-1, < 16.10.16
>= 17.0.0-rc-1, < 17.4.8
>= 17.5.0-rc-1, < 17.10.1
Fixed in 16.10.16, 17.4.8 or 17.10.1, depending on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
XWiki is a powerful open-source platform designed for collaborative knowledge management. It allows users to create, edit, and manage content in a wiki format. The platform's REST APIs facilitate interaction with the wiki's data programmatically. However, certain endpoints can expose the system to resource exhaustion issues, particularly in large wikis, due to improper handling of database list properties.
Vulnerability Detail
The vulnerability arises from specific REST API endpoints that list all available pages and spaces, which can lead to resource exhaustion on large wikis. For instance, the endpoint '/xwiki/rest/wikis/xwiki/spaces/AnnotationCode/pages/AnnotationConfig/objects/AnnotationCode.AnnotationConfig/0/properties' retrieves extensive metadata, potentially overwhelming the server's resources and causing unavailability. This issue is classified under CWE-770, indicating improper handling of resource consumption.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
>= 1.8-rc-1, < 16.10.1616.10.16 -
>= 17.0.0-rc-1, < 17.4.817.4.8 -
>= 17.5.0-rc-1, < 17.10.117.10.1
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
Currently, there are no known workarounds other than upgrading the affected modules to the patched versions mentioned above.
Conclusion
In summary, CVE-2026-40104 poses a significant risk to XWiki installations, particularly those with extensive content. It is crucial to upgrade to the patched versions of the affected packages to mitigate this vulnerability and ensure the stability of your XWiki instance.
See every vulnerability recorded for org.xwiki.platform:xwiki-platform-oldcore →
FAQ
CVE-2026-40104 is a vulnerability in XWiki's REST APIs that can lead to resource exhaustion by listing all pages and spaces in large wikis.
If your XWiki instance is large, this vulnerability can exhaust server resources, potentially leading to downtime or unavailability.
Affected versions include those prior to 16.10.16, 17.4.8, and 17.10.1 for both 'xwiki-platform-oldcore' and 'xwiki-platform-legacy-oldcore'.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
The CVSS score for this vulnerability is 6.9, indicating a moderate severity level.
References
Related vulnerabilities
Recent vulnerabilities recorded for org.xwiki.platform:xwiki-platform-oldcore.