XWiki allows unregistered users to access private pages information through REST endpoint
Package
Affected versions
>= 1.9M1, < 15.10.14
>= 16.0.0-rc-1, < 16.4.6
>= 16.5.0-rc-1, < 16.10.0-rc-1
Patched versions
15.10.14
16.4.6
16.10.0-rc-1
Description
Published by the National Vulnerability Database
Mar 19, 2025
Published to the GitHub Advisory Database
Mar 19, 2025
Reviewed
Mar 19, 2025
Last updated
Mar 19, 2025
Impact
Protected pages are listed when requesting the REST endpoints
/rest/wikis/[wikiName]/pageseven if the user doesn't have view rights on them.It's particularly true if the entire wiki is protected with "Prevent unregistered user to view pages": the endpoint would still list the pages of the wiki (actually it only impacts the main wiki due to XWIKI-22639).
Patches
The problem has been patched in XWiki 15.10.14, 16.4.6, 16.10.0RC1. In those versions the endpoint can still be requested but the result is filtered out based on pages rights.
Workarounds
There's no workaround except upgrading or applying manually the changes of the commits (see references) in
xwiki-platform-rest-serverand recompiling / rebuilding it.References
For more information
If you have any questions or comments about this advisory:
References