CVE-2026-61689: XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes
Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-jmmc-wjpc-pg34
Summary
The XWiki Platform REST API is vulnerable to HQL injection that allows unauthenticated attackers to extract sensitive database contents, including password hashes. Engineering teams should prioritize upgrading to the patched versions or disabling affected endpoints.
Who is affected
Unauthenticated attackers can exploit the query REST API to bypass column whitelisting and execute blind queries against the database. This allows the extraction of data from restricted pages and configuration properties, potentially leading to full credential compromise. Additionally, complex queries may cause service degradation by impacting database availability.
Exploitability
The vulnerability is highly accessible as it requires no privileges or user interaction and leverages network-based entry. While the current EPSS score is low at 0.005, the CVSS vector indicates a high impact on data confidentiality and a potential for availability loss. It is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade XWiki Platform to version 16.10.18, 17.10.5, or 18.2.0 where HQL and WXQL queries are disabled by default in the REST API.
- Block requests to the /rest/wikis/{wikiName}/query endpoint at the web server or reverse proxy level as a temporary mitigation.
How to check your project
- Inspect the project's Maven configuration (pom.xml) for dependencies on org.xwiki.platform:xwiki-platform-rest-server.
- Verify if the resolved version falls within the ranges 4.3-milestone-1 to 16.10.17, 18.0.0-rc-1 to 18.1.x, or 17.0.0-rc-1 to 17.10.4.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Maven | org.xwiki.platform:xwiki-platform-rest-server |
>= 4.3-milestone-1, < 16.10.18 | 16.10.18 | - |
| Maven | org.xwiki.platform:xwiki-platform-rest-server |
>= 18.0.0-rc-1, < 18.2.0 | 18.2.0 | - |
| Maven | org.xwiki.platform:xwiki-platform-rest-server |
>= 17.0.0-rc-1, < 17.10.5 | 17.10.5 | - |
CVSS 4.0 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
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | None |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | High |
| Integrity (vulnerable system) | None |
| Availability (vulnerable system) | Low |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
Does this vulnerability require authentication?
No, the vulnerability allows for unauthenticated database extraction via the REST API.
Can I simply use a firewall to mitigate this issue?
Yes, you can mitigate the risk by blocking access to the /rest/wikis/{wikiName}/query endpoint at your reverse proxy or web server level.
How difficult is it to recover passwords?
For a typical salted SHA1 password hash, the vulnerability can be exploited in approximately 800 requests to the REST API, though more complex techniques may be required depending on the environment.
Original advisory description
References
- WEB https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-jmmc-wjpc-pg34
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-61689
- WEB https://github.com/xwiki/xwiki-platform/commit/4d6a2cd9cd049d0c31823ce47bff0a95667967e3
- WEB https://github.com/xwiki/xwiki-platform/commit/62b034daceead8e292244d6c9e651c0ee8b1354c
- WEB https://github.com/xwiki/xwiki-platform/commit/ae540bc3def0d4a30210eb9bead4e559984b4462
- WEB https://github.com/xwiki/xwiki-platform/commit/b63d383f2e2a41826c21a76d678b9b0e1ab0ce52
- PACKAGE https://github.com/xwiki/xwiki-platform
- WEB https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-16.10.18
- WEB https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-17.10.5
- WEB https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-18.2.0
- WEB https://jira.xwiki.org/browse/XWIKI-24061
Source records: GHSA-jmmc-wjpc-pg34 (OSV.dev) · EPSS by FIRST, 2026-11-26.