High

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

  • Disclosed: 19.11.2026
  • Updated: 20.11.2026 10:00

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 a FROM clause injection joining the BaseObject and StringProperty tables, bypassing the HQL validator's SELECT column whitelist.

This allows recovering any data 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 works even when the attacker cannot read any wiki page. Password hashes in XWiki use salted SHA1, which can be cracked offline if passwords are weak. Furthermore, the executed database queries could be slow, affecting system availability.

Patches

The vulnerability has been fixed in XWiki 16.10.18, 17.10.5, and 18.2.0 by disabling HQL and WXQL queries in the REST API by default.

Workarounds

Requests to the /rest/wikis/{wikiName}/query endpoint can be blocked at the web server or reverse proxy level.

What to do

Upgrade XWiki to version 16.10.18, 17.10.5, 18.2.0, or later, which disables HQL and WXQL queries in the REST API by default. Alternatively, block requests to the /rest/wikis/{wikiName}/query endpoint at the web server or reverse proxy level.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.xwiki.platform:xwiki-platform-rest-server >= 4.3-milestone-1, < 16.10.18, >= 18.0.0-rc-1, < 18.2.0, >= 17.0.0-rc-1, < 17.10.5 16.10.18, 18.2.0, 17.10.5

References

CVSS score -
CVSS vector
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
Weakness (CWE)
CWE-943
Platform
Java / Kotlin (Maven)
Package
org.xwiki.platform:xwiki-platform-rest-server
Disclosed
19.11.2026
Updated
20.11.2026 10:00

Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.

OSV / GitHub Advisory Database - GHSA-jmmc-wjpc-pg34 - CC BY 4.0

Vulnerability history: org.xwiki.platform:xwiki-platform-rest-server

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (12) in the archive
Total entries
12
First → latest
11.2022 11.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 4
  • High 5
  • Medium 3

Disclosures per year

  1. 2022: 1
  2. 2023: 2
  3. 2024: 1
  4. 2025: 6
  5. 2026: 2
Severity:
  1. XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes this entry
    High CVE-2026-61689 >= 4.3-milestone-1, < 16.10.18, >= 18.0.0-rc-1, < 18.2.0, >= 17.0.0-rc-1, < 17.10.5 16.10.18, 18.2.0, 17.10.5
  2. Critical CVE-2026-33137 >= 15.10.6, < 16.10.17, >= 17.0.0-rc-1, < 17.4.9, >= 17.5.0, < 17.10.3, >= 18.0.0-rc-1, < 18.1.0-rc-1 16.10.17, 17.4.9, 17.10.3, 18.1.0-rc-1
  3. High CVE-2025-66473 < 16.10.11, >= 17.0.0-rc-1, < 17.4.4, >= 17.5.0-rc-1, < 17.7.0-rc-1 16.10.11, 17.4.4, 17.7.0-rc-1
  4. Critical CVE-2025-52472 >= 17.0.0-rc-1, < 17.4.2, >= 4.3-milestone-1, < 16.10.9 17.4.2, 16.10.9
  5. High CVE-2025-49584 >= 10.9, < 16.4.7, >= 16.5.0-rc-1, < 16.10.3, >= 17.0.0-rc-1, < 17.0.0 16.4.7, 16.10.3, 17.0.0
  6. Critical · 9.8 CVE-2025-32969 >= 1.8, < 15.10.16, >= 16.0.0-rc-1, < 16.4.6, >= 16.5.0-rc-1, < 16.10.1 15.10.16, 16.4.6, 16.10.1
  7. High CVE-2025-29925 >= 1.9M1, < 15.10.14, >= 16.0.0-rc-1, < 16.4.6, >= 16.5.0-rc-1, < 16.10.0-rc-1 15.10.14, 16.4.6, 16.10.0-rc-1
  8. Critical · 9.6 CVE-2023-37277 >= 1.8, < 14.10.8, >= 15.0-rc-1, < 15.2 14.10.8, 15.2
  9. High · 7.5 CVE-2023-35151 >= 7.3-milestone-1, < 14.4.8, >= 14.5, < 14.10.6, >= 15.0-rc-1, < 15.1 14.4.8, 14.10.6, 15.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.