CVE-2026-61689 — XWiki Platform: HQL injection in...
XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.96%). Schedule for your next planned update.
Does your project use an affected org.xwiki.platform:xwiki-platform-rest-server version?
Paste your pom.xml to check it for CVE-2026-61689 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published November 19, 2026 (7 days ago).
- Last revised November 19, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 18.2.0 for org.xwiki.platform:xwiki-platform-rest-server -->
<!-- Update pom.xml dependency version to 16.10.18 for org.xwiki.platform:xwiki-platform-rest-server -->
<!-- Update pom.xml dependency version to 17.10.5 for org.xwiki.platform:xwiki-platform-rest-server -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.xwiki.platform:xwiki-platform-rest-server Maven · Affected: All versions | 18.2.0 |
| org.xwiki.platform:xwiki-platform-rest-server Maven · Affected: All versions | 16.10.18 |
| org.xwiki.platform:xwiki-platform-rest-server Maven · Affected: All versions | 17.10.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-943
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.2 score means for each attack dimension.
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
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-jmmc-wjpc-pg34WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-61689ADVISORY
- https://github.com/xwiki/xwiki-platform/commit/4d6a2cd9cd049d0c31823ce47bff0a95667967e3WEB
- https://github.com/xwiki/xwiki-platform/commit/62b034daceead8e292244d6c9e651c0ee8b1354cWEB
- https://github.com/xwiki/xwiki-platform/commit/ae540bc3def0d4a30210eb9bead4e559984b4462WEB
- https://github.com/xwiki/xwiki-platform/commit/b63d383f2e2a41826c21a76d678b9b0e1ab0ce52WEB
- https://github.com/xwiki/xwiki-platformPACKAGE
- https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-16.10.18WEB
- https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-17.10.5WEB
- https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-18.2.0WEB
- https://jira.xwiki.org/browse/XWIKI-24061WEB
Frequently Asked Questions
- What is CVE-2026-61689?
- XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.2/10).
- How do I check if my project is affected by CVE-2026-61689?
- CVE-2026-61689 affects org.xwiki.platform:xwiki-platform-rest-server. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-61689 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 60.1% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2023-37277CRITICAL
XWiki Platform vulnerable to cross-site request forgery (CSRF) via the REST API
- CVE-2023-29514CRITICAL
XWiki vulnerable to Code Injection in template provider administration
- CVE-2025-32969CRITICAL
org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API
- CVE-2023-36470CRITICAL
XWiki Platform vulnerable to Code Injection in icon themes
- CVE-2025-52472CRITICAL
XWiki Platform is vulnerable to HQL injection via wiki and space search REST API
- CVE-2026-33137CRITICAL
XWiki Platform has an Unauthenticated XAR Import via REST /wikis/{wikiName}
- CVE-2023-29207HIGH
Improper Neutralization of Script-Related HTML Tags (XSS) in the LiveTable Macro
- CVE-2025-49582HIGH
XWiki's required right warnings for macros are incomplete