All vulnerabilities

Maven

CVE-2026-61689

XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes

Severity
High
Published
19 Nov 2026
Last changed
19 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
16.10.18, 17.10.5, 18.2.0
Exploit chance
0.8% in the next 30 daysHigher than 57% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
NoSQL injection (CWE-943)
Also known as
GHSA-jmmc-wjpc-pg34
Sources
OSV.dev and GitHub

Description

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.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

The requests to the /rest/wikis/{wikiName}/query endpoint could be blocked at the web server/reverse proxy level.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
org.xwiki.platform:xwiki-platform-rest-serverMaven · osv:Maven:org.xwiki.platform:xwiki-platform-rest-server
  • From 4.3-milestone-1 before 16.10.18
  • From 17.0.0-rc-1 before 17.10.5
  • From 18.0.0-rc-1 before 18.2.0

About org.xwiki.platform:xwiki-platform-rest-server

This is the only vulnerability in org.xwiki.platform:xwiki-platform-rest-server in our list.

References