XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes
Impact
The query REST API allows executing HQL queries to filter the listed pages. While this properly checks access rights for the current user, the query can be used to combine WHEN clauses and blind queries to recover values through a FROM clause injection joining the BaseObject and StringProperty tables, bypassing the HQL validator's SELECT column whitelist.
This allows recovering any data stored in the database, including data from inaccessible pages, password hashes, and passwords stored in configuration properties. For a typical password hash, this requires about 800 requests to the REST API (about one per bit). It should be assumed that when using more complex techniques, this works even when the attacker cannot read any wiki page. Password hashes in XWiki use salted SHA1, which can be cracked offline if passwords are weak. Furthermore, the executed database queries could be slow, affecting system availability.
Patches
The vulnerability has been fixed in XWiki 16.10.18, 17.10.5, and 18.2.0 by disabling HQL and WXQL queries in the REST API by default.
Workarounds
Requests to the /rest/wikis/{wikiName}/query endpoint can be blocked at the web server or reverse proxy level.
What to do
Upgrade XWiki to version 16.10.18, 17.10.5, 18.2.0, or later, which disables HQL and WXQL queries in the REST API by default. Alternatively, block requests to the /rest/wikis/{wikiName}/query endpoint at the web server or reverse proxy level.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.xwiki.platform:xwiki-platform-rest-server | >= 4.3-milestone-1, < 16.10.18, >= 18.0.0-rc-1, < 18.2.0, >= 17.0.0-rc-1, < 17.10.5 | 16.10.18, 18.2.0, 17.10.5 |
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-jmmc-wjpc-pg34
- https://nvd.nist.gov/vuln/detail/CVE-2026-61689
- https://github.com/xwiki/xwiki-platform/commit/4d6a2cd9cd049d0c31823ce47bff0a95667967e3
- https://github.com/xwiki/xwiki-platform/commit/62b034daceead8e292244d6c9e651c0ee8b1354c
- https://github.com/xwiki/xwiki-platform/commit/ae540bc3def0d4a30210eb9bead4e559984b4462
- https://github.com/xwiki/xwiki-platform/commit/b63d383f2e2a41826c21a76d678b9b0e1ab0ce52
- https://github.com/xwiki/xwiki-platform
- https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-16.10.18
- https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-17.10.5
- https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-18.2.0
- https://jira.xwiki.org/browse/XWIKI-24061
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N- Weakness (CWE)
CWE-943- Platform
- Java / Kotlin (Maven)
- Package
org.xwiki.platform:xwiki-platform-rest-server- Disclosed
- 19.11.2026
- Updated
- 20.11.2026 10:00
Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.
OSV / GitHub Advisory Database - GHSA-jmmc-wjpc-pg34 - CC BY 4.0
Vulnerability history: org.xwiki.platform:xwiki-platform-rest-server
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 12
- First → latest
- 11.2022 11.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 4
- High 5
- Medium 3
Disclosures per year
- 2022: 1
- 2023: 2
- 2024: 1
- 2025: 6
- 2026: 2
-
XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.