Summary
CVE-2026-61689 is an HQL injection vulnerability in XWiki Platform’s REST query endpoint. An unauthenticated attacker can read database values from pages they cannot access, including salted SHA1 password hashes. The CVE record rates it 8.8 (High).
Technical details
- Root cause: improper neutralization of special elements in query logic (CWE-943) in the
/rest/wikis/{wikiName}/queryREST endpoint. - Trigger conditions: a request to the endpoint using blind conditions and FROM-clause injection techniques, which bypass the SELECT-column restrictions.
- Attack vector: network. No authentication or user interaction is required, and attack complexity is low.
- Impact: high confidentiality impact, since database values from inaccessible pages can be recovered, including salted SHA1 password hashes. Availability impact is rated low.
Affected software
- XWiki Platform 4.3-milestone-1 through 16.10.17
- XWiki Platform 17.0.0-rc-1 through 17.10.4
- XWiki Platform 18.0.0-rc-1 through 18.1.x (before 18.2.0)
Severity
CVSS base score 8.8 (High). The CVE record provides a CVSS v4.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. No CVSS v3.1 vector was found in the sources reviewed.
Mitigation and recommended actions
- Immediate: upgrade to XWiki 16.10.18, 17.10.5 or 18.2.0, depending on your release line.
- No workarounds were found in the sources reviewed. As a precaution, consider restricting network access to the
/rest/endpoints for untrusted users until you patch. - If you suspect exposure, consider resetting user passwords, since password hashes may have been disclosed.

