MODERATE 8.2

CVE-2026-40104

XWiki's REST APIs can list all pages/spaces, leading to unavailability

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.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.xwiki.platform » xwiki-platform-legacy-oldcore
>= 1.8-rc-1, < 16.10.16>= 17.0.0-rc-1, < 17.4.8>= 17.5.0-rc-1, < 17.10.1
16.10.16, 17.4.8, 17.10.1
org.xwiki.platform » xwiki-platform-oldcore
>= 1.8-rc-1, < 16.10.16>= 17.0.0-rc-1, < 17.4.8>= 17.5.0-rc-1, < 17.10.1
16.10.16, 17.4.8, 17.10.1

Blast radius

2affected artifacts
1,100affected versions
1,132dependent artifacts (est.)
121,388dependent versions

72% of the dependent artifacts (821) still pull an affected version in their latest release.

DepthDependent versions
Direct
43,382
2 hops
50,826
3 hops
23,548
4 hops
3,513
5 hops
117
6 hops
2

Most used dependents

Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.