HIGH · CVSS 4.0 EPSS 1.0% · 60th percentile CWE-943

CVE-2026-61689: XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes

Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-jmmc-wjpc-pg34

Summary

The XWiki Platform REST API is vulnerable to HQL injection that allows unauthenticated attackers to extract sensitive database contents, including password hashes. Engineering teams should prioritize upgrading to the patched versions or disabling affected endpoints.

Who is affected

Unauthenticated attackers can exploit the query REST API to bypass column whitelisting and execute blind queries against the database. This allows the extraction of data from restricted pages and configuration properties, potentially leading to full credential compromise. Additionally, complex queries may cause service degradation by impacting database availability.

Exploitability

The vulnerability is highly accessible as it requires no privileges or user interaction and leverages network-based entry. While the current EPSS score is low at 0.005, the CVSS vector indicates a high impact on data confidentiality and a potential for availability loss. It is not currently listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Maven org.xwiki.platform:xwiki-platform-rest-server >= 4.3-milestone-1, < 16.10.18 16.10.18 -
Maven org.xwiki.platform:xwiki-platform-rest-server >= 18.0.0-rc-1, < 18.2.0 18.2.0 -
Maven org.xwiki.platform:xwiki-platform-rest-server >= 17.0.0-rc-1, < 17.10.5 17.10.5 -

CVSS 4.0 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

Attack vectorNetwork
Attack complexityLow
Attack requirementsNone
Privileges requiredNone
User interactionNone
Confidentiality (vulnerable system)High
Integrity (vulnerable system)None
Availability (vulnerable system)Low
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

Does this vulnerability require authentication?

No, the vulnerability allows for unauthenticated database extraction via the REST API.

Can I simply use a firewall to mitigate this issue?

Yes, you can mitigate the risk by blocking access to the /rest/wikis/{wikiName}/query endpoint at your reverse proxy or web server level.

How difficult is it to recover passwords?

For a typical salted SHA1 password hash, the vulnerability can be exploited in approximately 800 requests to the REST API, though more complex techniques may be required depending on the environment.

Original advisory description
### 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.

References

Source records: GHSA-jmmc-wjpc-pg34 (OSV.dev) · EPSS by FIRST, 2026-11-26.