Vulnerabilities in pkg:maven/org.xwiki.platform/xwiki-platform-refactoring-default
PACKAGECVE-2025-49580 is a HIGH xwiki allows privilege escalation through vulnerability (CWE-266: Incorrect Privilege Assignment) affecting Xwiki platform refactoring default libraries in the Maven ecosystem. The issue involves xwiki allows privilege escalation through link refactoring. Remediation is available by upgrading affected packages to version 17.1.0-rc-1, 16.10.4, 16.4.7.
pkg:maven/org.xwiki.platform/xwiki-platform-refactoring-default
Vulnerability advisories affecting package pkg:maven/org.xwiki.platform/xwiki-platform-refactoring-default. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-jm43-hrq7-r7w6 | CVE-2025-49580 | HIGH | XWiki allows privilege escalation through link refactoring |
CVE-2025-49580 at a Glance
How to Fix CVE-2025-49580
To remediate this vulnerability, upgrade all affected Xwiki platform refactoring default dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-refactoring-default</artifactId>
<version>17.1.0-rc-1</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-refactoring-default</artifactId>
<version>16.10.4</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-refactoring-default</artifactId>
<version>16.4.7</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-refactoring-default</artifactId>
<version>16.4.7</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.xwiki.platform
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-49580, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.xwiki.platform
Analyze the terminal output to locate any version of Xwiki platform refactoring default in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 17.1.0-rc-1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.xwiki.platform command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-266: Incorrect Privilege Assignment, where a product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor. In Xwiki platform refactoring default, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-49580 Affected Xwiki platform refactoring default Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.xwiki.platform:xwiki-platform-refactoring-default
|
Maven |
≥ 17.0.0-rc-1
< 17.1.0-rc-1
|
17.1.0-rc-1
|
|
org.xwiki.platform:xwiki-platform-refactoring-default
|
Maven |
≥ 16.5.0-rc-1
< 16.10.4
|
16.10.4
|
|
org.xwiki.platform:xwiki-platform-refactoring-default
|
Maven |
≥ 8.2
< 16.4.7
|
16.4.7
|
|
org.xwiki.platform:xwiki-platform-refactoring-default
|
Maven |
≥ 7.4.5
< 16.4.7
|
16.4.7
|
References
Frequently Asked Questions
What is CVE-2025-49580?
Which Xwiki platform refactoring default versions are affected?
What version fixes CVE-2025-49580?
Is xwiki-platform-refactoring-default affected?
What CWE is associated with CVE-2025-49580?
How can I check Maven dependencies for CVE-2025-49580?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jm43-hrq7-r7w6",
"modified" : "2026-04-14T18:26:09Z",
"published" : "2025-06-13T20:24:24Z",
"aliases" : [ "CVE-2025-49580" ],
"summary" : "XWiki allows privilege escalation through link refactoring",
"details" : "### Impact\n\nPages can gain script or programming rights when they contain a link and the target of the link is renamed or moved. This might lead to execution of scripts contained in xobjects that should have never been executed. \nThis vulnerability affects all version of XWiki since 8.2 and 7.4.5.\n\n### Patches\n\nThe patch consists in only setting the `originalMetadataAuthor` when performing such change, so that it's displayed in the history but it has no impact on the right evaluation (i.e. the original author of the changes is still used for right computation). \n\nThis patch has been applied on XWiki 16.4.7, 17.1.0RC1, 16.10.4.\n\n### Workarounds\n\nThere's no workaround for this vulnerability, except preventing to perform any refactoring operation with users having more than edit rights. \nAdministrators are strongly advised to upgrade. If not possible, the patch only impacts module `xwiki-platform-refactoring-default` so it's possible to apply the commit and rebuild and deploy only that module.\n\n### CVSS explanation\n\nAttack vector: Network - Always for XWiki.\nComplexity: Low - The set of operations to perform the attack is quite easy.\nAttack requirements: None - Any system is vulnerable, it doesn't depend on specific condition other than user interaction.\nPrivileges required: Low - The attacker only needs edit rights.\nUser interaction: Active - To be successful the attack needs someone with more rights to perform a move/rename of a specific page.\nConfidentiality: High - The attack might lead to execution of any script.\nIntegrity: High - The attack might lead to execution of any script.\nAvailability: High - The attack might lead to execution of any script.\nSubsequent system impacts: None for any criteria. Only current system is affected.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)\n* Email us at [Security Mailing List](mailto:security@xwiki.org)",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-refactoring-default"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "17.0.0-rc-1"
}, {
"fixed" : "17.1.0-rc-1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-refactoring-default"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "16.5.0-rc-1"
}, {
"fixed" : "16.10.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-refactoring-default"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.2"
}, {
"fixed" : "16.4.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-refactoring-default"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.4.5"
}, {
"fixed" : "16.4.7"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 8.0-milestone-1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-jm43-hrq7-r7w6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49580"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/commit/ab209acd780da69a4c5ff77ff011efd698273cec"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/xwiki/xwiki-platform"
}, {
"type" : "WEB",
"url" : "https://jira.xwiki.org/browse/XWIKI-22836"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-266" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-13T20:24:24Z",
"nvd_published_at" : "2025-06-13T16:15:27Z"
}
}