CVE-2026-61689: 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 FROM clause injection to join BaseObject and StringProperty tables, bypassing the HQL validator's SELECT column whitelist.
Published Nov 19, 2026
Affected packages
org.xwiki.platform:xwiki-platform-rest-server
- Ecosystem
- Maven
- Affected
- >= 4.3-milestone-1, < 16.10.18
- Fixed in
- 16.10.18
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-rest-server
org.xwiki.platform:xwiki-platform-rest-server
- Ecosystem
- Maven
- Affected
- >= 18.0.0-rc-1, < 18.2.0
- Fixed in
- 18.2.0
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-rest-server
org.xwiki.platform:xwiki-platform-rest-server
- Ecosystem
- Maven
- Affected
- >= 17.0.0-rc-1, < 17.10.5
- Fixed in
- 17.10.5
- Check
mvn dependency:tree -Dincludes=org.xwiki.platform:xwiki-platform-rest-server
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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 FROM clause injection to join BaseObject and StringProperty tables, bypassing the HQL validator's SELECT column whitelist. This allows recovering any data that is 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 even works when the attacker cannot read any wiki page. Password hashes use salted SHA1 in XWiki which can be cracked offline for weak passwords. Further, the executed database queries could be slow, affecting the availability of the system.
Patches
The vulnerability has been fixed in XWiki 16.10.18, 17.10.5 and 18.2.0 by disabling the HQL and WXQL queries in the REST API by default.
Workarounds
The requests to the /rest/wikis/{wikiName}/query endpoint could be blocked at the web server/reverse proxy level.
Credited to msatdt.
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/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
- https://github.com/advisories/GHSA-jmmc-wjpc-pg34
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-33137
XWiki Platform has an Unauthenticated XAR Import via REST /wikis/{wikiName}
critical9.3May 26, 2026CVE-2025-66473
XWiki's REST APIs don't enforce any limits, leading to unavailability and OOM in large wikis
high8.7Dec 10, 2025CVE-2025-52472
XWiki Platform is vulnerable to HQL injection via wiki and space search REST API
critical9.3Oct 6, 2025CVE-2025-49584
XWiki makes title of inaccessible pages available through the class property values REST API
high8.7Jun 13, 2025CVE-2025-46554
XWiki missing authorization when accessing the wiki level attachments list and metadata via REST API
medium5.3Apr 30, 2025CVE-2025-32969
org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API
critical9.8Apr 23, 2025
