CVE-2025-32971: Solr script service doesn't take dropped programming right into account
(updated )
The Solr script service that is accessible in XWiki’s scripting API normally requires programming right to be called. Due to using the wrong API for checking rights, it doesn’t take the fact into account that programming rights might have been dropped by calling $xcontext.dropPermissions()
. If some code relies on this for the safety of executing Velocity code with the wrong author context, this could allow a user with script right to either cause a high load by indexing documents or to temporarily remove documents from the search index. We’re not aware that this is exploitable in XWiki itself.
To reproduce, a user with programming right can add the following XWiki syntax to a page:
{{velocity}}
$xcontext.dropPermissions()
$services.solr.index('document:xwiki:Main.WebHome')
{{/velocity}}
This should trigger an error in XWiki’s log, otherwise the installation is vulnerable.
References
Code Behaviors & Features
Detect and mitigate CVE-2025-32971 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →