Why XWiki security advisories need a patch routine
Patching a self-hosted XWiki is an ongoing routine across the stable line, the long term support (LTS) line and the intermediate LTS line, not a one-off upgrade you perform at go-live. Each line receives its own fixes, so an instance that was current when it was installed can fall behind within weeks of a new advisory. The question you must be able to answer is not whether you upgraded once, but which version each of your instances runs today, which advisories apply to it, and how long a fix took to reach production. At time of research, the official Docker image tags were 18.8.0 for stable, 17.10.14 for LTS and 18.4.7 for the intermediate LTS. Treat those values as a snapshot only. Your instance sits on one of these branches, and the branch decides which fixed release you must reach. Confirm the current tags on the official image pages before you plan any upgrade.
When you run XWiki in your own infrastructure, the operator owns four jobs: watching advisories for the components you run, choosing and documenting the branch you stay on, testing patch releases against your own extensions and data, and deploying the result with a record of when it went live. The vendor and the community publish the fixes, but nothing applies them to your instance unless your team does. Nobody else will notice that a Solr endpoint or a REST route is exposed on your network.
A formal routine becomes necessary once you have more than one instance, extensions that need compatibility checks, users who depend on the wiki for procedures or records, or any obligation to show a regulator or auditor how quickly you respond to vulnerabilities. Write the routine down before the first advisory arrives: name the owner, the review cadence, the test environment and the emergency path for issues that need a proxy rule before a release is ready.
Choosing a branch that still gets fixes
The stable line carries the newest XWiki features and receives the most frequent releases. It suits teams that want current functionality, have a regular upgrade cadence, and can test each release before it reaches users. Running stable means accepting that a minor release may change behavior that your extensions depend on, so each upgrade needs a regression pass. At the time of research, the official Docker image tag for stable was 18.8.0, a snapshot only, so check the current tag before you plan.
- Fit: teams with an internal test environment and an owner who can run upgrades every few months.
- Extension risk: confirm that each XWiki Store extension you use has a release for the target stable version before upgrading.
- Cadence: plan a standing upgrade window rather than waiting for an advisory to force one.
- Rollback: keep a database backup and the previous image tag so you can return to the prior release.
- Advisories: stable releases carry security fixes, but confirm the support window with XWiki before you rely on it for a long period.
Before you commit, check the current stable tag on the official image page and confirm with XWiki how long each stable release receives fixes.
The long term support line is built for organizations that prefer fewer, more predictable upgrades. It suits regulated environments, public sector bodies and teams with limited upgrade capacity, where stability and a slower change rate matter more than the newest features. The trade-off is that you move to new functionality less often and must still plan a major move when the line eventually ends. At the time of research, the official Docker image tag for LTS was 17.10.14, a snapshot only, so check the current tag before you plan.
- Fit: instances with many extensions, strict change control or a small platform team.
- Patch releases: LTS receives maintenance releases on its branch, which are the usual route for fixes you can apply without a feature change.
- Planned moves: when the line is near its end, plan the move to a newer line with a test instance, not in the middle of an incident.
- Java and Tomcat: check whether the runtime requirements change between lines, since that can be the largest part of an upgrade.
- Documentation: keep the upgrade notes for the LTS line with your change records for audit evidence.
Before you commit, confirm the end date for the LTS branch and the date by which you must move to a successor line.
The intermediate long term support line sits between stable and LTS. It suits teams that want more stability than stable without waiting for the next full LTS. It can fit an organization that is moving off an older LTS and wants an intermediate step with maintenance on a defined branch. At the time of research, the official Docker image tag for the intermediate LTS was 18.4.7, a snapshot only, so check the current tag before you plan.
- Fit: teams that want a stable base with a slower change rate than the stable line.
- Migration step: use it as a planned stop when moving from an older LTS, and test each hop separately.
- Branch mapping: record which branch each instance uses, because patch releases follow the branch, not the image name.
- Advisory matching: check each advisory's list of fixed versions against your branch, since fixes may land on one line before another.
- Successor plan: confirm when this line stops receiving fixes and what the successor line is.
Before you commit, ask XWiki for the published support window for this line and whether its fixes are back-ported on the same schedule as the LTS line.
Moving between lines is a planned upgrade, not a patch. The move changes the XWiki version, often the Java and Tomcat requirements, and sometimes extensions and database scripts. Treat it as a project with a test environment, a restored copy of production data, and a written rollback path. Doing it under pressure after an advisory is the most common way to create new problems.
- Test copy: restore a recent backup into a separate environment and run the upgrade there first.
- Extension check: confirm each installed extension supports the target version before you start.
- Runtime check: review the Java and Tomcat requirements for the target line.
- Sequence: move along the documented path and avoid skipping lines unless the upgrade notes say it is supported.
- Evidence: record the before and after versions, test results and approvals for your change management system.
Before you commit to a target line, confirm the upgrade path, the support windows of both lines and any known issues with XWiki and with the extensions you run.
Patch options and when each fits
This table compares the four main responses to an XWiki advisory: patching on the current branch, moving to another supported branch, rebuilding a Docker image on a new tag, and applying a proxy rule as a stopgap. Read each row against your version, your hosting model and how quickly you can test, and treat the proxy rule as a temporary measure rather than a fix.
| Option | When it fits | Main risk | Verify before and after |
|---|---|---|---|
| Patch release on current branch | Your instance is on the branch named in the advisory and the fixed patch release exists for it | Regressions in extensions that depend on behavior changed in the patch | Before: confirm your exact version against the advisory's fixed list. After: check login, search, key pages and installed extensions |
| Move to another supported branch | Your current branch no longer receives the fix, or the fixed release is on a line you already plan to adopt | Larger change set, Java and Tomcat changes and extension compatibility gaps | Before: check the upgrade notes for the target line and test extensions on a copy. After: confirm the version shown in administration and re-run smoke tests |
| Rebuild Docker image on a new tag | You run the official Docker images and the fix ships as a new image tag for your database variant | Using a tag that does not match your database variant or architecture, or pulling a floating tag | Before: pin the exact tag and confirm the variant (MySQL, PostgreSQL or MariaDB) and architecture. After: confirm the running image digest and the version in the wiki |
| Proxy rule as temporary stopgap | The advisory names a specific endpoint, you cannot patch yet, and the rule can be tested without breaking legitimate use | False confidence: the rule may miss other paths, methods or the same flaw reached another way | Before: confirm the endpoint and test that normal editing and reading still work. After: keep the rule until the patch is live, then remove it and retest |
| Defer and accept exposure | Usually not a valid choice for a published advisory on an internet-reachable instance | Known exploit exposure continues while the instance stays unpatched | Before: document the decision, owner and compensating controls. After: review when the next patch or new advisory appears |
Building the patch routine step by step
The routine turns advisory notices into a repeatable path: know what runs, decide who acts, prove the fix in a copy, deploy it, and keep the evidence. Each step ends with a check you can show an auditor or a security reviewer.
Inventory running versions and image tags
Record every XWiki instance, including test, staging and disaster recovery copies, with its exact running version, the image tag or WAR build it was deployed from, the database variant, and the servlet container. Pull the version from the administration pages on each instance, and compare it with the image tag recorded in your deployment repository, because the two can drift after a manual change. The step is done when every instance appears in one list with both values, and any mismatch has an owner. Confirm which instances are reachable from the internet and which sit behind your identity layer, since that changes how urgent an advisory is for each one.
Subscribe to advisories for your branch
Watch the XWiki security advisories published on GitHub and the project's security announcements, and filter them to the branches you run, whether stable, the long term support line or the intermediate long term support line. Subscribe the platform owner and a backup, so a notice is not lost when one person is away. Check the advisory's affected and fixed versions against the inventory from the previous step, not only its headline. The step is done when a named mailbox or chat channel receives each advisory for your branch, and you can show a dated record of the last notice you handled.
Assign a triage owner and set the decision path
Name one person who decides, for each advisory, whether an instance is affected, how urgent the fix is, and whether a stopgap such as a proxy rule is needed while the patch is tested. Agree in advance who approves an emergency change outside the normal window, and who can take an instance offline if exposure is confirmed. Write this down as a short runbook covering the owner, the approver and the escalation contact. The step is done when the runbook exists, has been reviewed by the security lead, and the triage owner has confirmed the contact details work.
Stage the patch on a copy of production data
Restore a recent backup of the database and attachments into a test instance that matches production's version, database variant, extensions and configuration, then apply the fixed release for your branch. Keep the test instance off the public network, and remove or disable outbound mail and integrations so test activity does not reach real users or systems. Confirm that the restore completed and that the instance starts cleanly and reports the new version in the administration pages. Record the backup identifier used, because the evidence in the final step depends on it.
Run regression and access checks on the staged copy
Test the functions your users depend on, such as page editing, search, attachments, extensions you have installed, and any single sign-on or connector flows. Then test access directly: sign in as guest, as a standard user and as an administrator, and confirm each role sees and changes only what it should. If the advisory names an endpoint, send the request that the advisory describes to the staged copy, both before and after the patch, and record the responses. If a proxy rule is the stopgap, confirm that it blocks the targeted endpoint and that normal pages still load. The step is done when results are written down with a pass or fail for each check.
Deploy the patch and verify the production instance
Apply the same release to production in the change window your runbook sets, using the same method you used in staging so the result is comparable. Once the instance is back, confirm the running version in the administration pages and in the image or build metadata, check that the health and log output shows no new errors, and repeat the endpoint test from the previous step against production. If you are using a proxy rule as a stopgap, keep it in place until the production check confirms the fixed version is running, then remove it through the same change process. The step is done when the version, the endpoint result and the log check are all recorded.
Record evidence and close the advisory
Create a single record for each advisory that holds the advisory identifier, the affected instances and versions before and after, the staging and production test results, the backup identifier, the change approval, and the date the proxy rule was removed if one was used. Store the record where your compliance and audit teams can find it, and link it to the change ticket. Review open records each month to catch instances that were skipped or left on an unsupported line. The step is done when the record is complete and the triage owner has signed it off.
How an advisory moves through triage, test and deploy
The path starts when an advisory is published, usually on the XWiki GitHub security advisories, and the first hand-off is an affected-version check against the versions running in each instance. The decision then splits three ways: upgrade to a fixed release on the current branch, move to a branch that still receives fixes, or apply a proxy stopgap while the upgrade is scheduled. Whatever path is chosen, the change is tested in staging before production, and the outcome is written to an evidence record that shows which version each instance runs and when the stopgap was removed.
Triage path from advisory publication to a recorded production fix.
Security and operational risks while patches wait
Every XWiki instance that runs behind a known advisory carries risk until the fixed release is in place. The four risks below connect because each one grows while a patch is delayed, and each one needs a named owner before the gap opens rather than after.
Exposed unpatched instances
An instance that is reachable from the internet or from guest sessions while an advisory is open is the most direct exposure. Check which hosts answer on the public address, whether guest access is enabled, and which XWiki version each node runs, including nodes behind a load balancer that may still serve an older container. Confirm the running version from the admin interface or the image tag, not from the deployment record. The infrastructure owner should keep this inventory current. For specific flaws, see the sibling topics on the affected advisories.
XWiki Docker docsLeaked configuration after disclosure
Some disclosures expose configuration files such as xwiki.cfg through reachable endpoints. Once an advisory is public, assume that secrets in those files may have been read on any instance that was exposed. Review database credentials, mail settings and any keys or tokens stored in configuration, and rotate what could have been seen. Confirm which endpoints are served by your distribution, and whether a demo Jetty package is in use. The security owner decides on rotation, and the platform owner carries it out. Details are in the sibling configuration exposure topic.
Proxy rules that break legitimate use
A proxy rule that blocks a vulnerable endpoint can also block a feature your users rely on. Before deploying a rule, test it against each workflow that calls the path, including editors, scripts, integrations and scheduled jobs. Log the blocked requests for a defined period so you can see what was refused and by whom. Record who approved the rule, the date it was added, and the condition for removing it once the patched release is live. The web platform owner owns the rule, and the application owner signs off on the test results.
Drift between staging and production
A patch tested on a staging instance proves little if staging runs a different XWiki version, extension set, database or Tomcat setup. Compare the version, installed extensions, and container images of both environments before testing begins, and record any difference as a known gap. Apply the same image digest or package to both, then repeat the checks that matter to your users after the upgrade. The platform team owns environment parity, and the wiki administrators own the extension list. Ask your partner or vendor to confirm which versions a patch release supports.
Questions teams ask before patching XWiki
How often should we patch a self-hosted XWiki instance?
Patch as soon as a security release fixes an advisory that affects your version, and treat known exploited vulnerabilities as the most urgent. Routine patch releases on your current branch should follow a fixed schedule that your change process can absorb, with out-of-cycle patches for critical flaws. Confirm the fixed versions for each advisory against the XWiki security pages and the GitHub advisories for your branch before you set the schedule, because one advisory can list different fixed releases for each line. Your own risk tolerance and exposure to guest access should set how fast the first step happens.
Can our own team handle XWiki patching without a partner?
Yes, if you have people who can read advisories, run a staging copy, and roll back. A patch on a container deployment usually means updating the image tag, restarting, and checking that the wiki, search and extensions still work. Teams without Java, Tomcat or database experience often need help with upgrades that cross a major or LTS line, because those can change the Java and Tomcat requirements. Decide ownership before the first advisory arrives, including who watches the advisory feeds and who can approve an emergency change.
What does a patch test need before we apply a release?
A patch test needs a staging instance built from the same image variant, database and extensions as production, loaded with a recent copy of production data or a representative sample. Run the same XWiki version, apply the patch, then check login, page rendering, search, attachments, scheduled jobs and every extension you rely on. Record the result and the rollback steps. Keep the database backup taken immediately before the patch, since some upgrades change the database schema and rollback may mean restoring from backup.
What drives the cost and effort of patching XWiki?
The main drivers are the number of instances, how many extensions each one runs, how much custom macros, scripts or skins the instance carries, and how the database and reverse proxy are set up. Each extension may need its own compatibility check, and custom script code needs review when the platform changes. A single instance with a standard image and few extensions costs far less to patch than a fleet with custom code. Ask any provider for a quote that lists the instances, extensions, environments, test scope and whether the work is a one-time setup or a recurring retainer.
What would a partner need from us to patch XWiki?
A partner needs the current XWiki version and image variant, the database and its version, the Tomcat or Jetty setup, the reverse proxy configuration, the list of installed extensions, and any custom code or skins. They also need access to a staging environment, backup procedures, the change approval process and the names of the people who sign off on production work. Without an inventory of these items, the first step is discovery, which adds time to the engagement. Share the inventory before requesting a quote so the written scope reflects your real setup.
Do XWiki SAS support plans change how we patch?
Support plans do not change the advisories or the fixed versions, but they can change who answers your questions and how quickly. XWiki SAS lists on-premises professional support as a service, and its pricing page sets Starter, Basic, Business and Enterprise tiers by user count, with the same pricing for cloud and on-premises. Consulting is listed at 1200 EUR per day and requires a Business or Enterprise support plan, according to XWiki's pricing page. Check the current terms directly with XWiki SAS, since support scope and response commitments are defined in the plan you buy, not in this page.
Should we patch a container deployment differently from a traditional install?
Yes, the process differs in how you change the running software. In a container deployment, you typically move to a new image tag, keep persistent data and configuration volumes, and restart the service. The official Docker images come in MySQL, PostgreSQL and MariaDB variants on Tomcat, so confirm the variant you run before choosing a target tag. A traditional install replaces WAR files and configuration by hand, which raises the chance of configuration drift. Either way, keep the previous image or package available so you can roll back.
How DeployOpen runs XWiki patch management
DeployOpen starts XWiki patch management with a written scope that names every instance, its deployment method, its database variant and the XWiki branch it runs on. The branch matters more than the version number: stable, intermediate LTS and LTS lines receive fixes on different schedules, so an instance on a line that is leaving support needs a migration plan, not just a patch. The agreement also records who receives advisories, who approves a change, which maintenance window applies and which environments count as production. Clients confirm these facts with us before any work begins, and we confirm the supported-branch status against XWiki's own release information rather than memory.
Next, we set up the advisory watch and a test environment that mirrors production. The watch covers XWiki's GitHub security advisories and release notes for every branch in scope, and each advisory is mapped to the affected versions and to the exposed endpoints, such as REST, search or import paths. The test environment uses the same official Docker image or Helm deployment, the same database and the same extensions as production, so a patch release is applied and exercised before it reaches users. We also check whether a proxy rule can block an exposed endpoint while a fix is pending, and we test that rule so it does not break legitimate editing or sign-in.
For each patch, we deliver a change record with the target version, the extensions that changed, the rollback steps and a database backup taken before the change, plus evidence of the post-patch checks. Rollback notes state which backup restores the previous state and how long a restore is expected to take in your environment, which we measure during the test run. Retainers cover the recurring work: monitoring advisories, testing each release, applying approved patches and reporting on exposure. The retainer scope and response expectations are written into the agreement, and the fee follows from that written scope, so clients should ask for the advisory coverage and response commitments to be listed explicitly.

