# CVE-2025-52472: XWiki Platform is vulnerable to HQL injection via wiki and space search REST API

Source: https://junglewise.ai/threats/cve-2025-52472-xwiki-platform-is-vulnerable-to-hql-injection-via-wiki-and-space  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-10-06  
License: CC BY 4.0 with a link back

CVE-2025-52472 · Severity: medium · CVSS 4 · Published 2025-10-06

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

Technologies: [org.xwiki.platform:xwiki-platform-rest-server (Maven)](https://junglewise.ai/threats/technologies/org-xwiki-platform-xwiki-platform-rest-server). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2025-52472 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-52472 being exploited in the wild.

**How severe is CVE-2025-52472?** Medium severity, with a CVSS score of 4, published 6 October 2025.

**Which products and versions are affected?** org.xwiki.platform:xwiki-platform-rest-server (Maven) ECOSYSTEM:introduced=17.0.0-rc-1,fixed=17.4.2.

**Is there a fix for CVE-2025-52472?** Yes. org.xwiki.platform:xwiki-platform-rest-server (Maven): upgrade to 17.4.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-52472?** Check whether you run org.xwiki.platform:xwiki-platform-rest-server (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.xwiki.platform:xwiki-platform-rest-server (Maven): upgrade to 17.4.2 or later

  ```sh
  # set org.xwiki.platform:xwiki-platform-rest-server to 17.4.2 in your pom.xml or build.gradle
  ```


## Affected products

- org.xwiki.platform:xwiki-platform-rest-server (Maven) ECOSYSTEM:introduced=17.0.0-rc-1,fixed=17.4.2

## Identifiers

- CVE-2025-52472
- GHSA-gprp-h92g-gc2h

## Related threats

- [XWiki Platform missing authorization in REST API XAR import](https://junglewise.ai/threats/cve-2026-33137-xwiki-platform-missing-authorization-in-rest-api-xar-import)
- [XWiki's REST APIs don't enforce any limits, leading to unavailability and OOM in large wikis](https://junglewise.ai/threats/cve-2025-66473-xwiki-is-an-open-source-wiki-software-platform-versions-16-10-10)
- [XWiki makes title of inaccessible pages available through the class property values REST API](https://junglewise.ai/threats/cve-2025-49584-xwiki-makes-title-of-inaccessible-pages-available-through-the)
- [XWiki missing authorization when accessing the wiki level attachments list and metadata via REST API](https://junglewise.ai/threats/cve-2025-46554-xwiki-missing-authorization-when-accessing-the-wiki-level)
- [org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API](https://junglewise.ai/threats/cve-2025-32969-org-xwiki-platform-xwiki-platform-rest-server-allows-sql)
