xwiki/xwiki-platform · Security
XWiki's REST APIs can list all pages/spaces, leading to unavailability
- GHSA ID
- GHSA-mrqg-xmgm-rc5g
- CVE ID
- CVE-2026-40104
- Severity
- medium
- Published
- Updated
- CVSS
- 8.2 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- CVSS v3
- 8.2 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- CVSS v4
- 6.9 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Description
Impact
REST API endpoints like /xwiki/rest/wikis/xwiki/spaces/AnnotationCode/pages/AnnotationConfig/objects/AnnotationCode.AnnotationConfig/0/properties list all available pages as part of the metadata for database list properties, which can exhaust available resources on large wikis.
Patches
This problem has been patched by applying the configured query limit also to the available values for database list properties in XWiki 16.10.16, 17.4.8 and 17.10.1.
Workarounds
We're not aware of any workarounds apart from upgrading the affected modules.
CWEs
- CWE-770 · Allocation of Resources Without Limits or Throttling
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-mrqg-xmgm-rc5g ↗
- https://github.com/xwiki/xwiki-platform/commit/47b568c4753a6e682b14be1ca581bdd3b25d45a7 ↗
- https://jira.xwiki.org/browse/XWIKI-23550 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2026-40104 ↗
- https://github.com/advisories/GHSA-mrqg-xmgm-rc5g ↗