Vulnerabilities in pkg:maven/org.xwiki.platform/xwiki-platform-refactoring-default

PACKAGE
Advisory Identifier: GHSA-jm43-hrq7-r7w6
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.xwiki.platform/xwiki-platform-refactoring-default

1 Known Advisory Record(s)

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

CVE Identifier CVE-2025-49580
GHSA Identifier GHSA-jm43-hrq7-r7w6
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-266: Incorrect Privilege Assignment
Affected Product Xwiki platform refactoring default
Package Ecosystem Maven
Published Date
Last Updated

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.

org.xwiki.platform:xwiki-platform-refactoring-default fixed: 17.1.0-rc-1
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-refactoring-default</artifactId>
    <version>17.1.0-rc-1</version>
</dependency>
org.xwiki.platform:xwiki-platform-refactoring-default fixed: 16.10.4
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-refactoring-default</artifactId>
    <version>16.10.4</version>
</dependency>
org.xwiki.platform:xwiki-platform-refactoring-default fixed: 16.4.7
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-refactoring-default</artifactId>
    <version>16.4.7</version>
</dependency>
org.xwiki.platform:xwiki-platform-refactoring-default fixed: 16.4.7
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-refactoring-default</artifactId>
    <version>16.4.7</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### Impact Pages 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. This vulnerability affects all version of XWiki since 8.2 and 7.4.5. ### Patches The 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). This patch has been applied on XWiki 16.4.7, 17.1.0RC1, 16.10.4. ### Workarounds There's no workaround for this vulnerability, except preventing to perform any refactoring operation with users having more than edit rights. Administrators 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. ### CVSS explanation Attack vector: Network - Always for XWiki. Complexity: Low - The set of operations to perform the attack is quite easy. Attack requirements: None - Any system is vulnerable, it doesn't depend on specific condition other than user interaction. Privileges required: Low - The attacker only needs edit rights. User interaction: Active - To be successful the attack needs someone with more rights to perform a move/rename of a specific page. Confidentiality: High - The attack might lead to execution of any script. Integrity: High - The attack might lead to execution of any script. Availability: High - The attack might lead to execution of any script. Subsequent system impacts: None for any criteria. Only current system is affected. ### For more information If you have any questions or comments about this advisory: * Open an issue in [Jira XWiki.org](https://jira.xwiki.org/) * Email us at [Security Mailing List](mailto:security@xwiki.org)

CVE-2025-49580 Affected Xwiki platform refactoring default Versions

4 component(s)
Fixed Versions:
17.1.0-rc-116.10.416.4.7
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?
CVE-2025-49580 is a security vulnerability in Xwiki platform refactoring default involving XWiki allows privilege escalation through link refactoring under CWE-266: Incorrect Privilege Assignment.
Which Xwiki platform refactoring default versions are affected?
Affected versions include releases prior to 17.1.0-rc-1, 16.10.4, 16.4.7 across affected packages: org.xwiki.platform:xwiki-platform-refactoring-default.
What version fixes CVE-2025-49580?
Upgrading to 17.1.0-rc-1, 16.10.4, 16.4.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xwiki-platform-refactoring-default affected?
Yes, org.xwiki.platform:xwiki-platform-refactoring-default is affected in releases prior to 17.1.0-rc-1, 16.10.4, 16.4.7. Upgrade your dependency to 17.1.0-rc-1, 16.10.4, 16.4.7 or later.
What CWE is associated with CVE-2025-49580?
CVE-2025-49580 is classified under CWE-266: Incorrect Privilege Assignment (A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.).
How can I check Maven dependencies for CVE-2025-49580?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.xwiki.platform'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}