Skip to content
Threat Feed
medium advisory

XWiki Platform: REST API HQL injection (CVE-2026-61689)

An unauthenticated HQL injection vulnerability in the XWiki Platform REST API allows attackers to perform blind data extraction from the underlying database, including sensitive password hashes.

CVE search metadata

CVE search record: CVE-2026-61689. EPSS: 0.53%. KEV: no. Product: xwiki-platform-rest-server. Brief: XWiki Platform: REST API HQL injection (CVE-2026-61689). Brief link: https://feed.craftedsignal.io/briefs/2026-11-xwiki-hql-injection-ghsa-jmmc-wjpc-pg34/

Triage facts

Revision 1
Applicability
xwiki-platform-rest-server
Evidence
Unknown
Severity
Medium
Action
Elevated
Sources
2 public sources
Freshness
Revision 1Nov 20, 02:07 UTC
Vulnerabilities
1 CVE
Source quality
A1Very likely

Overview

XWiki Platform is susceptible to an HQL injection vulnerability (CVE-2026-61689) in the /rest/wikis/{wikiName}/query REST endpoint. The vulnerability enables attackers to bypass the HQL validator's SELECT-column whitelist by using FROM-clause injection to join BaseObject and StringProperty tables. Attackers can leverage blind techniques to exfiltrate database content, such as salted SHA1 password hashes and stored configuration secrets, without authentication. Furthermore, the construction of resource-intensive queries can lead to system performance degradation and potential denial-of-service conditions.

Impact

Successful exploitation allows unauthenticated attackers to recover sensitive information stored in the XWiki database. For a typical password hash, extraction requires approximately 800 API requests. Salted SHA1 hashes may be subject to offline cracking. High-load queries can also negatively affect platform availability.

Recommendation

  • Update to XWiki 16.10.18, 17.10.5, or 18.2.0, which disable HQL and XWQL queries in the REST API by default.
  • If patching is not immediately feasible, block access to the /rest/wikis/{wikiName}/query endpoint at the web server or reverse proxy layer.

Threat Hunt

Search for high volumes of requests to the XWiki REST query endpoint from single source IP addresses, indicating potential blind extraction attempts.

T1190 high medium confidence hunt now

Data: webserver request logs

Mitigations

Upgrade xwiki-platform-rest-server to 16.10.18, 17.10.5, or 18.2.0 or later.

immediate

Block access to /rest/wikis/*/query at the WAF or reverse proxy.

short_term