CVE-2025-49585 — Vulnerability in xwiki-platform-se…ts-default
XWiki does not require right warnings for XClass definitions
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.63%). Schedule for your next planned update.
Does your project use an affected org.xwiki.platform:xwiki-platform-security-requiredrights-default version?
Paste your pom.xml to check it for CVE-2025-49585 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
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.
Patches
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.
Workarounds
We're not aware of any real workarounds apart from just being careful with editing documents previously edited by untrusted users as a user with script, admin or programming right.
Advisory Timeline
- First published June 13, 2025 (531 days ago).
- Last revised June 13, 2025 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 16.10.2 for org.xwiki.platform:xwiki-platform-security-requiredrights-default -->
<!-- Update pom.xml dependency version to 15.10.16 for org.xwiki.platform:xwiki-platform-security-requiredrights-default -->
<!-- Update pom.xml dependency version to 16.4.7 for org.xwiki.platform:xwiki-platform-security-requiredrights-default -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Maven (1).
| Package | Fixed In |
|---|---|
| org.xwiki.platform:xwiki-platform-security-requiredrights-default Maven · Affected: All versions | 16.10.2 |
| org.xwiki.platform:xwiki-platform-security-requiredrights-default Maven · Affected: All versions | 15.10.16 |
| org.xwiki.platform:xwiki-platform-security-requiredrights-default Maven · Affected: All versions | 16.4.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-357
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.0 score means for each attack dimension.
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
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-59w6-r9hm-439hWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-49585ADVISORY
- https://github.com/xwiki/xwiki-platform/commit/385bde985cdb61ebf315d30c0b144b6d2e2c2d45WEB
- https://github.com/xwiki/xwiki-platformPACKAGE
- https://jira.xwiki.org/browse/XWIKI-22476WEB
Frequently Asked Questions
- What is CVE-2025-49585?
- XWiki does not require right warnings for XClass definitions. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.0/10).
- How do I check if my project is affected by CVE-2025-49585?
- CVE-2025-49585 affects org.xwiki.platform:xwiki-platform-security-requiredrights-default. It has a 1.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-49585 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top quartile of EPSS-scored vulnerabilities — 76.5% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2023-45137CRITICAL
XWiki Platform vulnerable to XSS with edit right in the create document form for existing pages
- CVE-2023-29514CRITICAL
XWiki vulnerable to Code Injection in template provider administration
- CVE-2023-36470CRITICAL
XWiki Platform vulnerable to Code Injection in icon themes
- CVE-2023-45134CRITICAL
XWiki Platform XSS vulnerability from account in the create page form via template provider
- CVE-2023-29525CRITICAL
XWiki Platform vulnerable to privilege escalation from view right on XWiki.Notifications.Code.LegacyNotificationAdministration
- CVE-2025-32974CRITICAL
org.xwiki.platform:xwiki-platform-security-requiredrights-default required rights analysis doesn't consider TextAreas with default content type
- CVE-2023-29207HIGH
Improper Neutralization of Script-Related HTML Tags (XSS) in the LiveTable Macro
- CVE-2025-49582HIGH
XWiki's required right warnings for macros are incomplete