CVE-2026-61689: XWiki Platform HQL Injection Vulnerability
HIGHCVE-2026-61689 is a HIGH hql injection vulnerability (CWE-943: Improper Neutralization of Special Elements in Data Query Logic) affecting XWiki Platform libraries in the Maven ecosystem. The issue involves hql injection in search allows unauthenticated database extraction including password hashes. Remediation is available by upgrading affected packages to version 16.10.18, 18.2.0, 17.10.5.
CVE-2026-61689 at a Glance
How to Fix CVE-2026-61689
To remediate this vulnerability, upgrade all affected XWiki Platform dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-rest-server</artifactId>
<version>16.10.18</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-rest-server</artifactId>
<version>18.2.0</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-rest-server</artifactId>
<version>17.10.5</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.xwiki.platform
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-61689, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.xwiki.platform
Analyze the terminal output to locate any version of XWiki Platform in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.10.18), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.xwiki.platform command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-943: Improper Neutralization of Special Elements in Data Query Logic, where the product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query. In XWiki Platform, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-61689 Affected XWiki Platform Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.xwiki.platform:xwiki-platform-rest-server
|
Maven |
≥ 4.3-milestone-1
< 16.10.18
|
16.10.18
|
|
org.xwiki.platform:xwiki-platform-rest-server
|
Maven |
≥ 18.0.0-rc-1
< 18.2.0
|
18.2.0
|
|
org.xwiki.platform:xwiki-platform-rest-server
|
Maven |
≥ 17.0.0-rc-1
< 17.10.5
|
17.10.5
|
References
Frequently Asked Questions
What is CVE-2026-61689?
Which XWiki Platform versions are affected?
What version fixes CVE-2026-61689?
Is xwiki-platform-rest-server affected?
What CWE is associated with CVE-2026-61689?
How can I check Maven dependencies for CVE-2026-61689?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jmmc-wjpc-pg34",
"modified" : "2026-11-19T20:44:33Z",
"published" : "2026-11-19T20:44:32Z",
"aliases" : [ "CVE-2026-61689" ],
"summary" : "XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes",
"details" : "### Impact\nThe 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.\n\n### Patches\nThe 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.\n\n### Workarounds\nThe requests to the `/rest/wikis/{wikiName}/query` endpoint could be blocked at the web server/reverse proxy level.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-rest-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.3-milestone-1"
}, {
"fixed" : "16.10.18"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-rest-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "18.0.0-rc-1"
}, {
"fixed" : "18.2.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-rest-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "17.0.0-rc-1"
}, {
"fixed" : "17.10.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-jmmc-wjpc-pg34"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-61689"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/commit/4d6a2cd9cd049d0c31823ce47bff0a95667967e3"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/commit/62b034daceead8e292244d6c9e651c0ee8b1354c"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/commit/ae540bc3def0d4a30210eb9bead4e559984b4462"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/commit/b63d383f2e2a41826c21a76d678b9b0e1ab0ce52"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/xwiki/xwiki-platform"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-16.10.18"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-17.10.5"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-18.2.0"
}, {
"type" : "WEB",
"url" : "https://jira.xwiki.org/browse/XWIKI-24061"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-943" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-19T20:44:32Z",
"nvd_published_at" : "2026-11-17T22:19:20Z"
}
}