Vulnerabilities in pkg:maven/org.xwiki.platform/xwiki-platform-rest-server

PACKAGE
Advisory Identifier: GHSA-jmmc-wjpc-pg34
Advisory Summary

CVE-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.

12 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.xwiki.platform/xwiki-platform-rest-server

12 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.xwiki.platform/xwiki-platform-rest-server. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-jmmc-wjpc-pg34 CVE-2026-61689 HIGH XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes
GHSA-qrvh-r3f2-9h4r CVE-2026-33137 CRITICAL XWiki Platform has an Unauthenticated XAR Import via REST /wikis/{wikiName}
GHSA-cc84-q3v3-mhgf CVE-2025-66473 HIGH XWiki's REST APIs don't enforce any limits, leading to unavailability and OOM in large wikis
GHSA-gprp-h92g-gc2h CVE-2025-52472 CRITICAL XWiki Platform is vulnerable to HQL injection via wiki and space search REST API
GHSA-mvp5-qx9c-c3fv CVE-2025-49584 HIGH XWiki makes title of inaccessible pages available through the class property values REST API
GHSA-r5cr-xm48-97xp CVE-2025-46554 MODERATE XWiki missing authorization when accessing the wiki level attachments list and metadata via REST API
GHSA-f69v-xrj8-rhxf CVE-2025-32969 CRITICAL org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API
GHSA-22q5-9phm-744v CVE-2025-29925 HIGH XWiki allows unregistered users to access private pages information through REST endpoint
GHSA-pvmm-55r5-g3mm CVE-2024-45591 MODERATE XWiki Platform document history including authors of any page exposed to unauthorized actors
GHSA-6xxr-648m-gch6 CVE-2023-37277 CRITICAL XWiki Platform vulnerable to cross-site request forgery (CSRF) via the REST API
GHSA-8g9c-c9cm-9c56 CVE-2023-35151 HIGH XWiki Platform may show email addresses in clear in REST results
GHSA-p88w-fhxw-xvcc CVE-2022-41936 MODERATE Exposure of Private Personal Information to an Unauthorized Actor in org.xwiki.platform:xwiki-platform-rest-server

CVE-2026-61689 at a Glance

CVE Identifier CVE-2026-61689
GHSA Identifier GHSA-jmmc-wjpc-pg34
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-943: Improper Neutralization of Special Elements in Data Query Logic
Affected Product XWiki Platform
Package Ecosystem Maven
Published Date
Last Updated

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.

org.xwiki.platform:xwiki-platform-rest-server fixed: 16.10.18
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rest-server</artifactId>
    <version>16.10.18</version>
</dependency>
org.xwiki.platform:xwiki-platform-rest-server fixed: 18.2.0
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rest-server</artifactId>
    <version>18.2.0</version>
</dependency>
org.xwiki.platform:xwiki-platform-rest-server fixed: 17.10.5
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rest-server</artifactId>
    <version>17.10.5</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### 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.

CVE-2026-61689 Affected XWiki Platform Versions

3 component(s)
Fixed Versions:
16.10.1818.2.017.10.5
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?
CVE-2026-61689 is a security vulnerability in XWiki Platform involving HQL injection in search allows unauthenticated database extraction including password hashes under CWE-943: Improper Neutralization of Special Elements in Data Query Logic.
Which XWiki Platform versions are affected?
Affected versions include releases prior to 16.10.18, 18.2.0, 17.10.5 across affected packages: org.xwiki.platform:xwiki-platform-rest-server.
What version fixes CVE-2026-61689?
Upgrading to 16.10.18, 18.2.0, 17.10.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xwiki-platform-rest-server affected?
Yes, org.xwiki.platform:xwiki-platform-rest-server is affected in releases prior to 16.10.18, 18.2.0, 17.10.5. Upgrade your dependency to 16.10.18, 18.2.0, 17.10.5 or later.
What CWE is associated with CVE-2026-61689?
CVE-2026-61689 is classified under CWE-943: Improper Neutralization of Special Elements in Data Query Logic (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.).
How can I check Maven dependencies for CVE-2026-61689?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.xwiki.platform'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}