XWiki REST API limits against slowdowns and outages

A large XWiki instance can slow or stop when a REST request asks for every page or space at once. This page explains the 1000 item limit added in 16.10.11, 17.4.4 and 17.7.0, the related advisories, and the proxy-level controls to use alongside it.

On this page

How XWiki REST API limits stop list requests from taking an instance down

XWiki's REST API did not enforce a limit on the number of items returned per request, so a single list call could ask for every page or space on a large wiki. A configurable default limit of 1000 items arrived in 16.10.11, 17.4.4 and 17.7.0 and 17.7.0RC1, and that default is the first control to check on any instance you run. The risk is slowness and unavailability rather than data exposure: a list request that walks a large page count can tie up memory, database connections and application threads until other users are affected. The advisory for this flaw is tracked as CVE-2025-66473 in GHSA-cc84-q3v3-mhgf, and the limit is worth checking first on any wiki that holds a large number of pages or spaces.

You are most exposed when page or space counts are high, when scripted clients page through REST endpoints without throttling, when a wiki was imported in bulk and has large spaces, or when REST endpoints are reachable from outside your network or from many internal tools. Confirm which of your installed versions carry the fix, and check whether any integration or nightly job relies on requesting an unbounded list, because a default limit will change what those clients receive. The limit is one control among several. It does not stop a single authenticated client from issuing many requests in a row, and it does not replace rate limiting, query review or capacity planning.

Plan the limit alongside the controls around it: reverse proxy rate limits on REST paths, separate service accounts with narrow rights for automation, monitoring of request latency and error rates, and a defined owner for any client that scripts against the API. Confirm the exact configuration key and default in the advisory and in the release notes for your branch before you change it, and test the change against your heaviest real client. Also review the XWiki Platform security advisories page for related denial of service entries, since a later advisory covers REST endpoints that can still list all pages or spaces.

How unbounded REST list requests lead to slowdowns and outages

A REST endpoint that returns every page or space in one response can tie up memory, database connections and worker threads long before anyone notices. The cards below separate the four paths that turn a list call into a slowdown or outage, so you can check each one on your own instance. The exact impact depends on instance size, page count and hardware.

One request, one very large result set

A single list call with no item cap asks XWiki to build the whole answer in memory before anything is sent back. On a wiki with a large number of pages or spaces, that one request can hold a worker thread and a database connection for a long time. CVE-2025-66473 describes exactly this gap: the REST API enforced no limit on items per request, which could cause slowness and unavailability. Check which list endpoints you expose and how large your page and space counts are.

Default item limit
1000
Read GHSA-cc84-q3v3-mhgf

Repeated calls from scripts and integrations

A cron job, sync script or connector that pages through the API without pausing can issue many large list requests in a short window. Each call may be modest on its own, but the combined load competes with human users for the same CPU, memory and database capacity. Review which integrations read through the REST API, how often they run and whether they request the full collection on every pass.

Unauthenticated or over-permissioned callers

A list endpoint that anonymous users or broadly privileged accounts can reach turns a public URL into a load source. CVE-2026-40104, published in April 2026, describes REST APIs that can list all pages or spaces and lead to unavailability. Confirm which endpoints answer without authentication, which accounts can call them, and whether your proxy restricts them by path.

XWiki advisories

Unavailability for human users

When list requests saturate the application server, the impact spreads to everyone else. Editors may see pages time out, login may slow down and search or the home page may stop responding while the server is busy. Because the load comes from an API path, the cause is often not obvious in the front-end logs. Set alerts on response times and thread or connection counts so that an API spike is visible as a user-facing slowdown.

Which XWiki REST API limit approach fits your instance

This table compares four ways to limit REST responses on an XWiki instance: upgrading, adjusting the configurable item limit, applying proxy rules and restricting access to known clients. Read each row for what it protects against, what breaks when it is set wrong and the conditions under which it fits your instance. The main takeaway is that the upgrade removes the unbounded default, while the other three are controls you configure and must verify yourself.

ApproachWhat it protects againstWhat breaks if misconfiguredWhen it fits
Upgrade to 16.10.11, 17.4.4, 17.7.0 or later on your branchUnbounded REST listings that return every page or space and slow or stop the instance (CVE-2025-66473)Upgrade regressions and extension incompatibilities that need testing in staging firstDefault choice when your branch still receives fixes and a maintenance window is available
Adjust the configurable item limitTuning the 1000 item default to match real workloads, such as large exports or bulk integrationsLimit set too high restores exposure; limit set too low makes integrations silently return partial resultsInstances with known bulk consumers that need more than the default, after confirming the setting name in release notes
Proxy rules that restrict or rate-limit REST pathsAbusive or runaway request volume against listing endpoints, including as a stopgap before patchingBlocking a path your apps, scripts or the XWiki UI depend on, or missing alternate URL forms of the same endpointStopgap while patching is scheduled, or as a permanent layer for internet-facing instances with predictable clients
Restrict REST access to known clients on the networkAnonymous or unexpected callers reaching REST endpoints from outside approved networksBreaking scheduled jobs, SSO callbacks or monitoring checks that come from unlisted addressesInternal wikis with fixed integration hosts, where client addresses and service accounts are documented
Verify with a load test after each changeConfirms that the chosen control actually caps response size and rate for your workloadsTests run against unrepresentative data can pass while production listings still time outEvery option above; confirm the test plan and data volume with your team before choosing a limit

Where the item limit and proxy controls sit in a REST request

The request starts at an API client or integration and passes through a reverse proxy, where path and rate rules can refuse traffic before it reaches the wiki. The trust boundary sits between the network and the wiki, so the proxy is the first place to shape requests. Inside XWiki, the REST API runs in the Tomcat application, and the configurable item limit applies there before results are read from the database. Check that proxy rules and the application limit are both in place, and that they agree on which endpoints they cover.

Request path from client to database, with the trust boundary and item limit marked.

Setup sequence for XWiki REST API limits and proxy controls

This sequence moves a self-hosted XWiki from unbounded REST list calls to a patched, tested and monitored state, so that page and space listings cannot quietly degrade the wiki for every user. Each step ends with a check you can record before moving on.

  1. Inventory the running XWiki version and branch

    The platform administrator records the exact running version from the administration interface or the image tag, then identifies whether it sits on the stable line, the long term support (LTS) line or the intermediate LTS line. Confirm the branch against the official XWiki release information, because the fixed release you need must come from the same branch. Also record the database and servlet container in use, since these affect the upgrade path. Done means you have a one-line record of version, branch, database and container that the change owner signs off.

  2. Identify REST clients that list pages or spaces

    The platform team, with the owners of each integration, lists every script, scheduled job, connector, reporting tool and browser extension that calls the REST API, and flags any request that asks for all pages or all spaces without paging. Check access logs for the REST path over a representative period so that calls made by people, not only by known services, are captured. Ask each owner whether their client pages through results and how many items it expects per call. Done means you have a named inventory with a flag on every unbounded list call, and each owner has confirmed their client.

  3. Upgrade to a fixed release on the same branch

    The platform administrator moves the instance to the fixed release that matches its branch, as listed in the advisory GHSA-cc84-q3v3-mhgf, which describes the configurable 1000 item default added in 16.10.11, 17.4.4 and 17.7.0. Do not jump between branches to reach a fix, and take a backup of the database and the attachment store before the change. Read the release notes for any upgrade steps that apply to your container or database. Done means the running version matches a fixed release on your branch and the backup is restorable in a test restore.

  4. Confirm the item limit in a staging copy

    Restore a recent backup into a staging environment that matches production's version, extensions and configuration, then run the REST list calls from the inventory against it. Confirm that list responses are capped at the default limit and that clients which need more items receive the paging behavior they expect. Test any limit change in a staging copy first, since clients that silently relied on full listings will break. Done means each inventoried list call returns a bounded result in staging, and every client owner has confirmed their output is complete through paging.

  5. Add proxy rules for list endpoints

    The network or platform team adds rules at the reverse proxy or API gateway in front of XWiki that limit request rate and concurrency for REST list paths, and that reject or throttle requests with unusually large page sizes. Keep rules narrow so that normal page views and editing are not affected, and document each rule with the owner and the reason. Proxy controls are a stopgap and complement the upgrade rather than replacing it. Done means the rules are deployed in staging, a test request above the limit is refused as designed, and ordinary wiki use still succeeds.

  6. Load test representative list calls

    The performance owner runs a controlled load test in staging that combines the inventoried list calls at the concurrency your integrations produce on a busy day, and records response times, error rates and server resource use. Compare results with and without the proxy rules so that the effect of each control is visible. Stop the test if the wiki's ordinary page views degrade, and record that as a finding. Done means you have a stored report with thresholds agreed by the platform owner, and the production capacity assumptions are reviewed against it.

  7. Set monitoring for slow requests and errors

    The operations team configures alerts for slow REST responses, elevated error codes on list paths, rising request counts from a single client and server resource saturation, using the logs and metrics available from the container and the proxy. Assign an owner for each alert and write a short runbook that says who blocks a client, who rolls back a rule and who contacts the integration owner. Test each alert once by triggering it in staging. Done means every alert has a tested trigger, a named owner and a runbook, and the first review date is on the calendar.

What to do when an instance cannot take the fixed release yet

If your change window can take a fixed release, the proxy controls are a short bridge rather than a long-term fix. Schedule the upgrade to a fixed version listed in GHSA-cc84-q3v3-mhgf for your branch, and apply the temporary controls only if the window is later than your exposure can accept. Confirm the fixed version for your exact line before you schedule anything.

  • Keep the stopgap short-lived: Apply list-path restrictions only until the upgrade is complete, and remove them afterward so they do not break legitimate clients.
  • Snapshot before upgrading: Take a database and attachment backup and confirm you can restore it, since the upgrade is the riskiest step.
  • Test the list endpoints after upgrade: Confirm that paged requests return the expected items and that the default item limit behaves as documented for your version.
  • Record the change: Log the old and new versions, the time the stopgap was applied, and the time it was removed.
  • Review the advisory again after the window: Check the XWiki Platform security advisories for later fixes to the same area.

Before closing the change, check that the instance reports the fixed version and that list requests from your known clients still succeed.

Why listing endpoints deserve their own access review

The main risk of an unbounded REST listing endpoint is availability: a single request that asks for every page or space can slow or stop a large instance, as CVE-2025-66473 showed. But the same endpoints also disclose structure. A caller who can reach a listing endpoint can build an inventory of page and space names, which is useful reconnaissance even when the content behind each page stays protected. Start by checking whether guest or anonymous access can reach /rest paths on your instance, and test it from outside your network with no credentials. Confirm the answer for both your public-facing hostname and any internal alias, because proxies often route them differently.

Next, list every service account and integration that calls the REST API, along with the rights each one holds. Many automations need only read access to a few spaces, so a broad account that lists everything is a sign the integration was built loosely and should be narrowed. Ask the owner of each integration how often it lists collections and whether it pages through results. Then configure logging at the proxy and in the application so that high-volume list calls from one client produce an alert rather than a silent slowdown. Set the alert threshold from your own baseline measured over normal working days, since no reliable default figure has been established for this.

Finally, decide how the instance will receive the fix. The limit added in 16.10.11, 17.4.4 and 17.7.0 applies only on those branches or later releases, so confirm which branch you run and whether it still receives security fixes. The XWiki Platform security advisories on GitHub, including GHSA-cc84-q3v3-mhgf, are the primary source for affected and fixed versions. Subscribe to the advisory feed for your branch, and record the date you last reviewed it. An access review is only a stopgap, so treat it as a dated item in your patch calendar rather than a finished control.

Limits to confirm before you rely on the item limit

The 1000 item default added in XWiki 16.10.11, 17.4.4 and 17.7.0RC1 only protects an instance if it behaves the way you expect in your own deployment. Six checks cover the setting itself, the clients that depend on REST, the proxy in front of it and the versions that carry the fix. Confirm each answer against the vendor release notes and the advisory before you rely on it.

Setting name and scope

Confirm the exact configuration key that controls the item limit in your version, and whether it is set globally, per instance or per request. The default of 1000 items came with the fix, so an older or unpatched build will not have it at all. Record the key, its default and where it is read from, using the release notes and the GHSA-cc84-q3v3-mhgf advisory as the reference.

Advisory GHSA-cc84-q3v3-mhgf

Paging for clients that need more

Any client that legitimately needs more than the limit must page through results with offset and count parameters instead of asking for everything at once. Check each integration, export job and reporting script for this behavior, and test that it collects the complete set across pages. Without this, large exports will silently return partial data after the limit is applied.

Extensions and custom scripts

Inventory every extension, macro and script that calls the REST API, including scripts run on a schedule and those in wiki pages. Confirm whether each one handles a truncated response, and whether any depends on listing all pages or spaces in a single call. Treat a script that breaks under the limit as a change to plan and test, not as a reason to raise the limit blindly.

Proxy and load balancer timeouts

Check how the item limit interacts with the timeouts on your reverse proxy and load balancer. A capped response can still be slow if backend queries are heavy, and a client that waits past a proxy timeout will see errors that look like an outage. Compare the response times you measure with the timeouts you configured, and confirm that rate limits at the proxy do not block legitimate paging.

Branches and release candidates with the fix

Confirm which branches carry the fix. The advisory names 17.7.0RC1, 17.4.4 and 16.10.11, so check whether your current line is one of them or whether it needs a later release. Do not assume that a fix on one branch reaches your LTS line, and record the exact version you run before and after the change.

Packaging exposes the setting

Confirm whether your deployment image or Helm chart exposes the setting as an environment variable, value or mounted file. If it does not, the default applies and any override must be made in the configuration your packaging actually reads. Check this in a test environment and keep the setting under version control so a chart or image upgrade does not reset it.

Questions teams ask before changing XWiki REST API limits

What drives the effort of applying the limit and proxy rules?

The effort depends on how many clients call the REST API, how many of them depend on bulk listing, and how your reverse proxy and Tomcat layers are arranged. The XWiki fix adds a configurable limit of 1000 items by default in 16.10.11, 17.4.4 and 17.7.0RC1, so the platform change is small, but the surrounding work is not. Teams usually spend the most time on three things: finding every consumer of the REST endpoints, deciding which consumers need pagination changes, and writing proxy rules that block abusive request patterns without breaking legitimate scripts. Ask any partner to break its quote into platform upgrade, proxy configuration, client remediation and verification, so you can see which part you own.

Can an in-house admin with Tomcat and proxy skills make this change alone?

Often yes for the configuration itself, but the hard part is knowing what the change will break. An admin who knows Tomcat, the reverse proxy and XWiki's upgrade notes can apply the version upgrade and set the limit. What usually needs a second pair of eyes is the inventory of REST consumers, such as scheduled scripts, third-party apps and integrations that expect full listings, and the test plan for those consumers. Confirm with your own team whether anyone has owned XWiki upgrades before and whether a staging copy is available. If not, a fixed-scope engagement can cover the review and hand the runbook back to your team.

How long does testing take for different instance sizes and integrations?

Testing time is driven by the number of REST consumers and the size of the page and space counts your integrations touch, not by a fixed duration. A small instance with one or two internal scripts usually needs a short regression pass. A large instance with many connectors, scheduled exports or custom applications needs each consumer exercised against a staging copy, plus load checks that confirm the limit holds under realistic request patterns. No duration is set here, so ask any provider for a test plan with the consumers listed, the environments used and the exit criteria, then judge the estimate against that plan.

What must our team provide before the work starts?

Most delays come from missing inputs rather than from the technical change. Prepare four items before any work begins:

  • A version inventory of every XWiki instance, including the exact release and the Tomcat and Java versions in use.
  • A list of REST clients, scripts, extensions and integrations that call the API, with their owners.
  • A staging copy of the instance with a recent data snapshot, so limit changes can be tested without touching production.
  • A change window agreed with the business owners, plus a rollback plan.

If you cannot list every client, that gap is itself a finding to report before changing anything.

Does raising the REST limit bring the risk back?

Yes, if the new value is high enough to allow the same unbounded load the advisory describes. The default 1000 item limit exists to keep single requests bounded, so raising it should be a deliberate decision tied to a documented need, not a convenience change. Keep the limit as high as your verified consumers require, add proxy rules to rate limit or block list-all patterns from untrusted clients, and monitor request sizes and response times after the change. Record who approved the new value and why, so a later administrator does not raise it again without review.

Does fixed-scope work or a retainer fit better for ongoing advisory response?

Fixed-scope work fits a one-time change: upgrading to a fixed release, setting the limit, writing proxy rules and verifying them against a staging copy. A retainer fits ongoing needs, such as watching new XWiki advisories, testing each patch release and keeping proxy rules current across several instances. DeployOpen plans, implements, hardens, upgrades, documents and supports self-hosted platforms in your own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. Ongoing support, upgrades and continuous testing are available as retainers. Ask for the written scope first, then decide whether the advisory volume justifies a standing agreement.

How DeployOpen scopes and delivers REST API limit hardening

DeployOpen plans and implements XWiki REST API limit hardening inside your own infrastructure, starting from an inventory of which endpoints return unbounded results and which clients depend on them. The work is agreed in a written, fixed scope, then built, tested and documented so your team can run the controls after handover.

How we scope

  • Inventory which XWiki version and branch you run, and whether it includes the 1000 item default from GHSA-cc84-q3v3-mhgf.
  • Map the REST calls your scripts, extensions and integrations make, and flag any that list every page or space.
  • Agree in writing the deliverables, environments covered and what is out of scope before work starts.

How we build

  • Set and test the configurable item limit in staging, checking how existing clients handle paged responses.
  • Add proxy-level rules and rate limits at your gateway or reverse proxy for endpoints you cannot yet upgrade.
  • Load test representative list requests against the instance to confirm the limit holds under realistic concurrency.

How we hand over

  • Document each configuration key, proxy rule and its rollback step so your operators can audit them.
  • Record the test cases, results and any client changes needed, with a retest plan for future patch releases.
  • Walk your platform and security teams through the runbook and the signs of endpoint overload to watch in logs.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, covering new XWiki advisories as they are published.
  • Review the REST limits again after each XWiki upgrade or when new advisories such as CVE-2026-40104 affect your branch.
  • Confirm the support terms, response expectations and included retests in the written agreement before the retainer starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.