# XWiki Platform is vulnerable to HQL injection via wiki and space search REST API

Advisory record · `GHSA-gprp-h92g-gc2h`

- **Identifiers:** `GHSA-gprp-h92g-gc2h` · `CVE-2025-52472`
- **State:** Confirmed
- **Severity:** CVSS 9.3 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-89](https://cwe.mitre.org/data/definitions/89.html)
- **Tags:** [SQL injection](https://agentprime.io/advisories/tag/sql-injection.md)
- **Published:** 6 Oct 2025
- **Updated:** 6 Oct 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 6 Oct 2025, 20:16 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.3: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `org.xwiki.platform:xwiki-platform-rest-server` (Maven): affected `>=17.0.0-rc-1, <17.4.2 || >=4.3-milestone-1, <16.10.9`; fixed in `17.4.2`, `16.10.9`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> XWiki Platform's xwiki-platform-rest-server Maven package, versions 17.0.0-rc-1 up to 17.4.2 and 4.3-milestone-1 up to 16.10.9, is vulnerable to HQL injection through the orderField parameter of the wiki and space search REST API. The source describes the injection as hard to exploit, but an attacker who can reach the endpoint may be able to alter the query. Upgrade to 17.4.2 or 16.10.9; the source lists no workaround other than upgrading.

Written 7 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.3 Critical, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.024, the 84th percentile, on 13 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:10 UTC: First seen by agentprime
- 31 Oct 2026, 15:10 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-gprp-h92g-gc2h)

## Sources

- [GitHub Advisory Database: GHSA-gprp-h92g-gc2h](https://github.com/advisories/GHSA-gprp-h92g-gc2h)
- [OSV: GHSA-gprp-h92g-gc2h](https://osv.dev/vulnerability/GHSA-gprp-h92g-gc2h)
- <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-gprp-h92g-gc2h>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-52472>
- <https://github.com/xwiki/xwiki-platform/commit/743ebf8696ffa55161ed2c5ecf26b09f69e6bcf1>
- <https://github.com/xwiki/xwiki-platform/commit/a45eca2af772abb7324e56d7fd2df1ac937bc445>
- <https://github.com/xwiki/xwiki-platform>
- <https://jira.xwiki.org/browse/XWIKI-23247>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-gprp-h92g-gc2h>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-gprp-h92g-gc2h/>. Everything for agents: <https://agentprime.io/llms.txt>.
