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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.96% (percentile 60, 2026-11-28)
- **CWE:** CWE-943
- **Aliases:** GHSA-jmmc-wjpc-pg34
- **Published:** 2026-11-17T21:25:26.793Z
- **Modified:** 2026-11-21T03:17:03.760Z

## Who should check

- Projects that depend on Maven package org.xwiki.platform:xwiki-platform-rest-server (\>= 4.3-milestone-1, \< 16.10.18)
- Anyone running xwiki-platform \>= 4.3-milestone-1, \< 16.10.18; \>= 17.0.0-rc-1, \< 17.10.5; \>= 18.0.0-rc-1, \< 18.2.0

## Description

XWiki Platform is a generic wiki platform. From 4.3-milestone-1 until 16.10.18, 17.10.5, and 18.2.0, the /rest/wikis/{wikiName}/query REST endpoint permits HQL query construction that can combine blind conditions with FROM-clause injection to join BaseObject and StringProperty, bypassing the SELECT-column whitelist. An unauthenticated attacker can recover database values from inaccessible pages, including salted SHA1 password hashes and passwords stored in configuration properties. It should be assumed that, with more complex techniques, this can work even when the attacker cannot read any wiki page. A typical password hash may require roughly 800 requests, and expensive injected queries can also degrade availability. The issue is remediated by disabling HQL and XWQL REST queries by default. This issue is fixed in versions 16.10.18, 17.10.5, and 18.2.0.

## Affected and fixed versions

- Maven `org.xwiki.platform:xwiki-platform-rest-server`: affected \>= 4.3-milestone-1, \< 16.10.18; fixed 16.10.18, 18.2.0, 17.10.5 (ghsa)
- xwiki-platform: \>= 4.3-milestone-1, \< 16.10.18; \>= 17.0.0-rc-1, \< 17.10.5; \>= 18.0.0-rc-1, \< 18.2.0 (cvelist)

## Technologies

Maven packages

## Mitigation

- Upgrade org.xwiki.platform:xwiki-platform-rest-server to one of 16.10.18, 18.2.0, 17.10.5 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-61689. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-61689.md
Affected: org.xwiki.platform:xwiki-platform-rest-server >= 4.3-milestone-1, < 16.10.18
Fixed in: 16.10.18, 18.2.0, 17.10.5

Steps:
1. Search this machine and project for org.xwiki.platform:xwiki-platform-rest-server (Maven), xwiki-platform: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-61689 being exploited?

There is no confirmed exploitation: CVE-2026-61689 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.96% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-61689?

High: CVSS 8.8 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-61689?

org.xwiki.platform:xwiki-platform-rest-server \>= 4.3-milestone-1, \< 16.10.18.

### Is there a fix for CVE-2026-61689?

Yes. Fixed in 16.10.18, 18.2.0, 17.10.5. Upgrade org.xwiki.platform:xwiki-platform-rest-server to one of 16.10.18, 18.2.0, 17.10.5 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-61689?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-jmmc-wjpc-pg34>
- patch: <https://github.com/xwiki/xwiki-platform/commit/4d6a2cd9cd049d0c31823ce47bff0a95667967e3>
- patch: <https://github.com/xwiki/xwiki-platform/commit/62b034daceead8e292244d6c9e651c0ee8b1354c>
- patch: <https://github.com/xwiki/xwiki-platform/commit/ae540bc3def0d4a30210eb9bead4e559984b4462>
- patch: <https://github.com/xwiki/xwiki-platform/commit/b63d383f2e2a41826c21a76d678b9b0e1ab0ce52>
- other: <https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-16.10.18>
- other: <https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-17.10.5>
- other: <https://github.com/xwiki/xwiki-platform/releases/tag/xwiki-platform-18.2.0>
- other: <https://nvd.nist.gov/vuln/detail/CVE-2026-61689>
- other: <https://jira.xwiki.org/browse/XWIKI-24061>
- other: <https://github.com/advisories/GHSA-jmmc-wjpc-pg34>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-61689>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-jmmc-wjpc-pg34> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-61689> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-61689>
