Why XWiki script rights need the tightest control
In a self-hosted XWiki where many people can edit pages, the script right is the permission that most needs deliberate granting. Script and programming rights are the permissions that allow code to run on the server, so they sit far above ordinary edit rights. Edit rights let a user change content; script rights let content execute logic inside the wiki's server-side runtime, which is why they should be granted to as few accounts as possible and only for a stated purpose.
In XWiki's permission model, the script right governs the use of server-side scripting in wiki content, such as Velocity and Groovy code, and related APIs that reach beyond plain page rendering. Programming right is the broader level that covers changes to wiki-wide code such as Java-backed extensions and administrative pages. Teams should review who holds these rights whenever they add an extension, when staff change roles, after a platform upgrade, and when a new application or macro is introduced. Confirm in your own instance, through the administration interface and the rights configuration for each space, which groups and users currently hold script or programming rights, since defaults and inherited grants can differ from what you expect.
The reason this matters more than edit rights is that a single weakness in an ordinary editing path can become a route to server-side execution. The XWiki Platform security advisories on GitHub record recent cases. CVE-2026-33229 (April 2026, high) allowed remote code execution with script right through an unprotected Velocity scripting API, and CVE-2026-53966 (June 2026, high) allowed escalation from edit to script right through Live Data editing. Confirm the fixed versions for your branch in those advisories before you plan a fix, and treat the script right as a boundary that your access model must protect on every upgrade.
Which permission paths lead to code execution
In XWiki, rights are the boundary between editing content and running code on the server. The paths below show how an account with a modest right can reach a stronger one, or read secrets it should never see. Check each path in your own instance, because group and space settings often decide whether it is open.
Edit right to script right through Live Data
Live Data lets editors build pages that pull and edit structured data. The June 2026 advisory CVE-2026-53966 (high) showed that this editing path could lift a user from edit right to script right. The key check is whether ordinary editors on your wiki can create or edit Live Data content, and whether your fixed release includes the patch for this advisory. Review who holds edit right on spaces that contain sensitive data, and confirm the version you run is past the fix.
Security advisoriesScript right through the Velocity API
Velocity is the template language XWiki uses for scripts, and its API exposes server-side capabilities. The April 2026 advisory CVE-2026-33229 (high) allowed remote code execution for anyone already holding script right, because the scripting API was not protected. The practical risk is that script right is treated as a minor grant, when it is effectively server access. Audit every account and group with script right, and confirm your version includes the April 2026 fix.
Security advisoriesPassword hashes through Database List properties
CVE-2025-54124 (high) let any user with edit right read password hashes through Database List properties. This means a contributor with ordinary editing permissions could collect credentials for other accounts, including administrators, and then attempt offline cracking. The check is whether your instance is on a release that fixes this flaw, and whether you have reset passwords or reviewed accounts that may have been exposed before patching. Treat credential rotation as part of the upgrade, not an optional extra.
Inherited rights through groups and spaces
Rights in XWiki flow down from wiki levels to spaces and pages, and from groups to their members, so a grant made for convenience can reach far beyond its intended area. A group given script or programming right on one space can carry that power into others if the rights are set broadly. The check is to list every effective right per account, including those inherited through nested groups, and to confirm that script and programming rights sit only with a small, named set of administrators. Repeat the review after each change to group membership.
How to audit who holds script and programming rights
This sequence produces a verified list of every principal that can run scripts or write script content in your XWiki, and a tested confirmation that ordinary editors cannot escalate through pages. Work through it in order so that each step's output feeds the next.
Export the global rights and group memberships
Start at the wiki administration level and list every group and user that holds script or programming right in the global rights settings, including members who inherit them through nested groups. Record the group names, their direct members and any user accounts granted the right individually. Confirm that the list is complete by comparing the group count and member count against what the administration interface shows, because nested membership is easy to miss in a manual review. The output is a written inventory that every later step checks against.
Map script rights at space and page level
Repeat the inventory for each space, then for pages that carry their own rights, since a space-level grant can be overridden or extended on a single page. Check the rights tab of each space and record any group or user that holds script or programming right there but is absent from the global list. Mark each finding as inherited, space-level or page-level so the removal step can target the correct scope. Close the step by confirming that every space and every page with explicit rights has been reviewed, and that the total of findings matches the number of rights entries you exported.
Decide which holders actually need the right
For each principal in the inventory, write down the reason it holds script or programming right and the business task that depends on it. Ask the wiki owners and the people who maintain macros or extensions to justify each entry, and flag any group that was added for a one-time task and never removed. Treat a holder with no documented task as a removal candidate, and keep a short list of the few accounts that need the right for maintenance. The output is an approved holder list signed off by the wiki owner, which becomes the baseline for the removal step.
Remove script rights from groups without a need
Remove the script and programming rights from every principal that the approved list does not include, starting with the broadest groups such as all registered users or large general groups. Work at the scope where each grant was recorded, so that a space-level grant is removed in that space and not only in the global settings. Keep a change log with the principal, scope, date and approver for each removal, which supports later review. Confirm the change by re-exporting the rights and checking that only approved principals remain at every scope.
Review pages and objects that contain scripts
Search for pages and objects that hold script content, such as Velocity, Groovy or other script macros, and for objects whose content runs with the author's rights. For each one, confirm who last edited it, whether the author still holds script right, and whether the content is still needed. Flag any script written by a principal that no longer holds the right, since such content may need review before it is trusted. Finish when every script-bearing page and object has an owner, a documented purpose and a review status recorded in the audit log.
Confirm guest and default edit rights
Check the guest account and the default rights for edit, comment and view at global and space level, and confirm that anonymous users cannot edit pages or reach any script-capable function. Note that an edit right alone should not carry script or programming capability, so verify that no default configuration gives editors more than they need. Record the guest and default settings in the audit log next to the earlier findings. The output is a confirmed statement of who can edit anonymously and who can edit by default, which you will test in the next step.
Test that edit-only users cannot save script content
Create or use a test account that holds edit right but not script or programming right, and attempt to save a page containing script content, a Live Data source or any macro that requires script right. Confirm that the save is refused or that the content is not executed with elevated rights. Repeat the test with a guest or unprivileged account where your configuration allows edits. Because the audit concerns escalation paths that have been disclosed in recent advisories, record the XWiki version under test and the exact input used, so that the result can be repeated after each upgrade.
Produce a remaining holders report and repeat on change
Generate a final report listing every principal that still holds script or programming right, grouped by scope, with the approval reason from step three and the date of the last review. Compare it with the approved holder list and resolve any difference before sign-off. Schedule the audit again after group changes, new extensions or upgrades, because rights drift as people and content change. The report is complete when it matches the approved list exactly and the escalation test from the previous step has passed on the current version.
Options for limiting script rights and when each fits
This table compares the main ways to narrow who can use script rights in XWiki, from restricting a small admin group to keeping scripted content in reviewed extensions. Read each row for the situation it suits and the cost it adds, and treat the most restrictive option as the default for any space that holds scripted content. Combining two or more options is usually more effective than relying on one.
| Option | When it fits | Trade-off | What to confirm |
|---|---|---|---|
| Restrict script rights to a small administrator group | Wikis where few people need to write Velocity, Groovy or other scripted macros | Content changes by non-admins need an admin to review or publish them, which slows updates | Which groups hold programming rights in your instance and who is in them |
| Keep scripted code in reviewed extensions instead of wiki pages | Teams that want reusable macros or logic maintained through code review and release | Developers must build, test and deploy extensions, so small fixes take longer | How your release process approves and versions extensions before they reach production |
| Restrict edit rights on sensitive spaces | Spaces holding credentials, configuration, HR or security material where few editors are needed | Owners must maintain access lists, and users can lose access they expect after reorganizations | Whether edit rights on child pages inherit from parent spaces in your version |
| Block untrusted editing through application rules | Organizations that want a single policy across many spaces, applied before content reaches users | Rules need ongoing maintenance and testing, and gaps appear when new apps or features are added | Which application rules your release supports and how they interact with script rights |
| Review advisories for escalation paths that bypass script right checks | Any instance, because some escalations start from ordinary edit rights | Patching can require upgrades that a team cannot schedule immediately | Current advisories for your branch in the XWiki Platform security advisories |
| Audit who holds script or programming rights on a schedule | Instances where rights were granted for past projects and never removed | Requires a recurring review by a named owner and a record of decisions | Whether your access reports list rights granted through groups as well as direct grants |
How an edit right becomes code execution
The path starts with a user who holds only edit right on a page that contains Live Data or a scripting macro. Two hand-offs matter: a Live Data edit that can raise the editor to script right (CVE-2026-53966), and an unprotected Velocity scripting API that runs server-side code for anyone holding script right (CVE-2026-33229). Each step has a control point: restrict edit on script-bearing content, withhold script right from non-developers, and confirm which advisories your version fixes.
Trust boundaries and control points on the path from edit right to code execution.
Patching script escalation when an upgrade is delayed
The only complete fix is a release that includes the advisory fix. Both the April 2026 remote code execution through the Velocity scripting API (CVE-2026-33229) and the June 2026 escalation from edit to script right through Live Data editing (CVE-2026-53966) are closed by upgrading, not by configuration. Start with the XWiki Platform security advisories page, which lists the affected version ranges and the fixed release for each branch you run. Confirm the fixed version for your exact line (stable, LTS or intermediate LTS) before you schedule the change, because a fix released on one branch may not be backported to the branch you are on. Record the advisory IDs and target versions in your change ticket so the audit trail shows why the risk was accepted for a period.
While the upgrade waits, the most useful step is to shrink the population that can exploit the bug. Review who holds edit right and script right, both globally and on individual spaces and pages, and remove script right from anyone who does not need it today. Treat the Live Data finding as a reason to review edit right on pages that embed Live Data, since the advisory describes escalation from edit to script. Restrict network access to administration paths and the REST and Velocity-facing endpoints so that only your internal users and administrators can reach them, and confirm with XWiki's guidance which paths the advisory covers before relying on a proxy rule. Treat each of these as a temporary control with a stated end date, not as a substitute for the patch.
Monitor for changes that would signal exploitation. Enable and review the recent changes and page history for script macros, Velocity content and Live Data definitions, and alert on edits by accounts that normally do not change those pages. Review the rights assignments on a schedule, because any new grant of script right during the delay is a change that needs an owner. Ask your XWiki partner or internal team to confirm, in writing, which of these checks match the advisory's described exploit path, and keep the results with the change record so you can show the reviewers what was checked and when.
Operational controls to keep script rights contained
Script right is the highest-value permission in an XWiki instance, so the controls that matter most limit who can hold it, watch when it changes and keep the admin surface small. The cards below cover account design, upgrade checks, logging, admin exposure, guest access and extension review, which together shrink what a single escalation can reach.
Separate admin and daily editing accounts
Give administrators a second account that is used only for rights management, extension installs and configuration. Daily editing, including writing pages and running Live Data, should happen under an ordinary account with no script or programming rights. The CVE-2026-53966 pattern, an escalation from edit to script right, is far less useful to an attacker when the edit account already holds nothing above it. Check that no routine editor inherits script rights through groups or nested membership, because group inheritance is the most common way this separation quietly breaks.
Review script rights after every upgrade
Upgrades can change which rights are granted by default or which APIs are reachable, so the rights picture you signed off before an upgrade may not hold afterward. After each upgrade, list every user and group holding script or programming rights, compare the list with the previous baseline, and remove anything no longer justified. Confirm the fix for any advisory that applies to your version, such as CVE-2026-33229, which allowed remote code execution with script right through an unprotected Velocity scripting API, is actually present in your running build.
Log rights changes and script saves
Record every change to rights, group membership and page content that contains script macros, including who made it and when. Forward these events to a store the wiki administrators cannot edit, so a compromised admin cannot erase their own trail. Ask your team to confirm which events the deployed XWiki version writes to its logs and which need an extra extension or a reverse proxy access log. A page save with a new script block is the signal most worth alerting on, because it is how a script right holder turns a page into code execution.
Protect admin interfaces at the proxy
Keep the administration paths and the Servlet container management endpoints off the public internet. Place XWiki behind a reverse proxy, allow only your internal or VPN address ranges to reach administrative URLs, and block any endpoint you do not need for normal reading and editing. This control does not fix a flaw in the application, but it narrows who can reach a vulnerable path at all. Test the rules from outside your network after every change, since a rule that blocks the wrong path can look successful while leaving an endpoint open.
Restrict guest access to editing
Guest accounts should be able to read only what the organization has chosen to publish. Confirm that guests hold no edit, comment or script-related rights on any space, including on pages created by extensions. Review the global rights and the rights on each top-level space, since a permissive setting on one space is enough to give an anonymous visitor a foothold. Several XWiki advisories have turned on guest-reachable functions, so a closed guest setting reduces exposure even before a patch is applied.
Review extensions before installation
Each extension runs code with the rights of the context that loads it, so an extension is effectively a piece of the platform you are trusting. Before installing one from the XWiki Store or a third-party repository, read its source, confirm its maintenance status, check which rights it requires and test it on a non-production instance. Keep a written list of approved extensions and remove any that no longer receive fixes. Ask your team to confirm the installation path your deployment uses, so extension installs go through the same admin account and change record as other configuration changes.
Questions teams ask about XWiki script rights
What is the script right in XWiki?
The script right is a permission that lets a user run server-side scripts inside XWiki pages, such as Groovy or Velocity code in wiki content, and call powerful APIs from there. It is separate from programming right, which covers Java-level code and is the most sensitive level. Because script code runs on the server, a user with script right can reach far beyond the page they edit. Treat it as administrative in effect, even though it is granted per space or per group. Before you change anything, list who holds it today, including members of groups that inherit it, since that list is often longer than teams expect.
Can a user with only edit right escalate to script right in XWiki?
Yes, the security advisories show that this has happened. CVE-2026-53966 (June 2026, high) allowed escalation from edit to script right through Live Data editing, so an ordinary editor could gain script capability on an unpatched instance. CVE-2025-54124 (high) let any user with edit right access password hashes through Database List properties. These are the reasons to check your installed version against the advisories before any other rights work. Confirm the fixed release for your branch in the XWiki Platform security advisories, then test whether your edit users can reach the affected features.
How long does a script rights review take?
No duration is fixed for this work, and the timing depends mainly on how much the instance contains. The effort rises with the number of spaces that hold script or programming content, the number of installed extensions that expose scripting APIs, and the number of groups and inherited grants that must be traced. A small wiki with few custom applications is far quicker to review than a multi-tenant instance with years of Velocity macros. Ask any provider for the scope in writing, including the spaces, extensions and groups covered, and the validation steps. A fixed-scope engagement lets you compare quotes against the same inventory.
Can our internal team review script rights without a partner?
Often yes, if your team has administrator access to the wiki, knows the XWiki rights model, and can read the advisories for the version you run. The work has three parts: an inventory of who holds script and programming right, a check of which pages and applications run scripts, and a fix for over-broad grants. Teams with a strong security engineer and an XWiki administrator usually cover the inventory themselves. Outside help is more useful for checking whether a specific advisory applies to your configuration and for retesting the fixes, since that needs someone who can attempt the escalation paths safely.
What does our team need to provide for a rights review?
Start with administrator access to the XWiki instance, since rights and group membership cannot be assessed from the outside. Provide a test instance that matches production in version and installed extensions, so that any escalation test can run without touching live content. Prepare an inventory of groups, including nested groups, service accounts and any LDAP or SSO-mapped groups. Also provide the list of extensions and a record of who approves script rights today. A short list of owners for the main spaces helps the reviewer confirm which content is business-critical before changes are made.
What does a fixed-scope XWiki security engagement cover?
Most DeployOpen engagements are fixed-scope, which means scope, deliverables and timelines are agreed in writing before work starts. For script rights, the written scope should name the instance or instances, the version and branch in use, the spaces and extensions in scope, and the test cases for edit-to-script and script-to-code paths. The deliverables should include an inventory of rights, findings with fixes, and a retest after the changes. Ask for the exclusions in writing too, such as work on other advisories or on the underlying host. DeployOpen does not issue audit reports or certifications, so any compliance evidence comes from independent assessors.
Does a rights review cost more than a platform upgrade?
It depends on the scope and on whether the upgrade is already planned. A rights review is one-time work that examines rights and scripting use, while an upgrade moves the platform to a fixed release and also has to be tested and rolled back if needed. Costs for both rise with the number of spaces, extensions and integrations. If you need to upgrade anyway, it is usually efficient to review rights in the same window. XWiki SAS lists consulting at 1200 EUR per day, which requires a Business or Enterprise support plan, and training at 1500 EUR per day (XWiki pricing). Those are vendor rates, not DeployOpen prices, so ask for a quote built from your written scope.
How DeployOpen tests and hardens XWiki script rights
DeployOpen treats script and programming rights as a privileged surface in each XWiki instance, not as a setting to enable and forget. We scope the review to your instance, test the escalation paths against your actual group and rights model, and hand over a documented, reviewed configuration that your team can maintain.
How we scope
- Inventory every group, page and space that can currently hold script or programming right in your instance.
- Map which users, admins and automated accounts can edit pages that run scripts or Live Data.
- Agree in writing which XWiki versions, extensions and hosting setup the review covers before work starts.
- Engagements are fixed-scope, so deliverables and timelines are confirmed in the written scope first.
How we build
- Test edit-to-script escalation paths, including Live Data editing and Velocity scripting API exposure, against your version.
- Check whether each affected release line is patched and record the fixed version your team should target.
- Reduce script right to a named, small group and restrict where scripted content can be saved and by whom.
- Verify changes with repeatable test cases that show the restricted rights still work for normal editors.
How we hand over
- Deliver a findings report that lists each escalation path, its evidence, its severity and the fix applied.
- Document the final rights model, the group membership process and the steps for reviewing script right over time.
- Walk your security and platform teams through the configuration so they can explain it to auditors and maintainers.
- Provide a retest after fixes so you have evidence the escalation paths are closed in your environment.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial engagement.
- Retainers can cover re-checking script right membership when new XWiki advisories are published.
- Support can include reviewing patch releases and new extensions that touch scripting or Live Data before they reach production.
- Ask any provider to confirm response expectations and retest scope in the written retainer terms.

