# CVE-2026-40104: XWiki's REST APIs can list all pages/spaces, leading to unavailability

Source: https://junglewise.ai/threats/cve-2026-40104-xwiki-s-rest-apis-can-list-all-pages-spaces-leading-to  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-15. Updated: 2026-05-11  
License: CC BY 4.0 with a link back

CVE-2026-40104 · Severity: high · CVSS 8.2 · Published 2026-04-15

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Versions 1.8-rc-1, 17.0.0-rc-1 and 17.5.0-rc-1 and prior include a resource exhaustion vulnerability in REST API endpoints such as /xwiki/rest/wikis/xwiki/spaces/AnnotationCode/pages/AnnotationConfig/objects/AnnotationCode.AnnotationConfig/0/properties, which list all available pages as part of the metadata for database list properties without applying query limits. On large wikis, this can exhaust available server resources. This issue has been patched in versions 16.10.16, 17.4.8 and 17.10.1.

Technologies: [org.xwiki.platform:xwiki-platform-legacy-oldcore (Maven)](https://junglewise.ai/threats/technologies/org-xwiki-platform-xwiki-platform-legacy-oldcore), [org.xwiki.platform:xwiki-platform-oldcore (Maven)](https://junglewise.ai/threats/technologies/org-xwiki-platform-xwiki-platform-oldcore). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven), [Xwiki](https://junglewise.ai/threats/vendors/xwiki).

## Quick answers

**Is CVE-2026-40104 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-40104 being exploited in the wild.

**How severe is CVE-2026-40104?** High severity, with a CVSS score of 8.2, published 15 April 2026.

**Which products and versions are affected?** org.xwiki.platform:xwiki-platform-legacy-oldcore (Maven) ECOSYSTEM:introduced=1.8-rc-1,fixed=16.10.16; org.xwiki.platform:xwiki-platform-oldcore (Maven) ECOSYSTEM:introduced=1.8-rc-1,fixed=16.10.16.

**Is there a fix for CVE-2026-40104?** Yes. org.xwiki.platform:xwiki-platform-legacy-oldcore (Maven): upgrade to 16.10.16 or later; org.xwiki.platform:xwiki-platform-oldcore (Maven): upgrade to 16.10.16 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2026-40104?** Check whether you run org.xwiki.platform:xwiki-platform-legacy-oldcore (Maven), org.xwiki.platform:xwiki-platform-oldcore (Maven) or Xwiki at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.xwiki.platform:xwiki-platform-legacy-oldcore (Maven): upgrade to 16.10.16 or later

  ```sh
  # set org.xwiki.platform:xwiki-platform-legacy-oldcore to 16.10.16 in your pom.xml or build.gradle
  ```

- org.xwiki.platform:xwiki-platform-oldcore (Maven): upgrade to 16.10.16 or later

  ```sh
  # set org.xwiki.platform:xwiki-platform-oldcore to 16.10.16 in your pom.xml or build.gradle
  ```


## Affected products

- org.xwiki.platform:xwiki-platform-legacy-oldcore (Maven) ECOSYSTEM:introduced=1.8-rc-1,fixed=16.10.16
- org.xwiki.platform:xwiki-platform-oldcore (Maven) ECOSYSTEM:introduced=1.8-rc-1,fixed=16.10.16
- Xwiki

## Identifiers

- CVE-2026-40104
- GHSA-mrqg-xmgm-rc5g

## References

- [https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-mrqg-xmgm-rc5g](https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-mrqg-xmgm-rc5g)
- [https://github.com/xwiki/xwiki-platform/commit/47b568c4753a6e682b14be1ca581bdd3b25d45a7](https://github.com/xwiki/xwiki-platform/commit/47b568c4753a6e682b14be1ca581bdd3b25d45a7)
- [https://jira.xwiki.org/browse/XWIKI-23550](https://jira.xwiki.org/browse/XWIKI-23550)
- [https://api.github.com/repos/xwiki/xwiki-platform/security-advisories/GHSA-mrqg-xmgm-rc5g](https://api.github.com/repos/xwiki/xwiki-platform/security-advisories/GHSA-mrqg-xmgm-rc5g)

## Related threats

- [XWiki Platform path traversal in skin action endpoint](https://junglewise.ai/threats/cve-2026-34151-xwiki-platform-path-traversal-in-skin-action-endpoint)
- [XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Versions 10.4-rc-1, through 16.10.](https://junglewise.ai/threats/cve-2026-40105-xwiki-has-reflected-cross-site-scripting-xss-in-page-history)
- [XWiki Platform sandbox bypass in Velocity scripting API](https://junglewise.ai/threats/cve-2026-33229-xwiki-platform-sandbox-bypass-in-velocity-scripting-api)
- [XWiki exposes passwords and emails stored in fields not named password/email in xml.vm](https://junglewise.ai/threats/cve-2025-54125-xwiki-exposes-passwords-and-emails-stored-in-fields-not-named)
- [XWiki leaks password hashes and other accessible password properties](https://junglewise.ai/threats/cve-2025-54124-xwiki-leaks-password-hashes-and-other-accessible-password)
