Vulnerabilities in pkg:maven/org.xwiki.platform/xwiki-platform-rendering-xwiki

PACKAGE
Advisory Identifier: GHSA-c32m-27pj-4xcj
Advisory Summary

CVE-2025-49582 is a HIGH xwiki's required right warnings for vulnerability (CWE-357: Insufficient UI Warning of Dangerous Operations) affecting Xwiki platform rendering xwiki libraries in the Maven ecosystem. The issue involves xwiki's required right warnings for macros are incomplete. Remediation is available by upgrading affected packages to version 16.4.7, 16.10.3, 17.0.0.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.xwiki.platform/xwiki-platform-rendering-xwiki

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.xwiki.platform/xwiki-platform-rendering-xwiki. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-c32m-27pj-4xcj CVE-2025-49582 HIGH XWiki's required right warnings for macros are incomplete
GHSA-vxf7-mx22-jr24 CVE-2023-29205 CRITICAL org.xwiki.platform:xwiki-platform-rendering-xwiki vulnerable to stored cross-site scripting via HTML and raw macro

CVE-2025-49582 at a Glance

CVE Identifier CVE-2025-49582
GHSA Identifier GHSA-c32m-27pj-4xcj
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-357: Insufficient UI Warning of Dangerous Operations
Affected Product Xwiki platform rendering xwiki
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-49582

To remediate this vulnerability, upgrade all affected Xwiki platform rendering xwiki 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-rendering-xwiki fixed: 16.4.7
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rendering-xwiki</artifactId>
    <version>16.4.7</version>
</dependency>
org.xwiki.platform:xwiki-platform-rendering-xwiki fixed: 16.10.3
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rendering-xwiki</artifactId>
    <version>16.10.3</version>
</dependency>
org.xwiki.platform:xwiki-platform-rendering-xwiki fixed: 17.0.0
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rendering-xwiki</artifactId>
    <version>17.0.0</version>
</dependency>
org.xwiki.platform:xwiki-platform-rendering-macro-cache fixed: 16.4.7
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rendering-macro-cache</artifactId>
    <version>16.4.7</version>
</dependency>
org.xwiki.platform:xwiki-platform-rendering-macro-cache fixed: 16.10.3
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rendering-macro-cache</artifactId>
    <version>16.10.3</version>
</dependency>
org.xwiki.platform:xwiki-platform-rendering-macro-cache fixed: 17.0.0
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rendering-macro-cache</artifactId>
    <version>17.0.0</version>
</dependency>
org.xwiki.platform:xwiki-platform-security-requiredrights-default fixed: 16.4.7
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-security-requiredrights-default</artifactId>
    <version>16.4.7</version>
</dependency>
org.xwiki.platform:xwiki-platform-security-requiredrights-default fixed: 16.10.3
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-security-requiredrights-default</artifactId>
    <version>16.10.3</version>
</dependency>
org.xwiki.platform:xwiki-platform-security-requiredrights-default fixed: 17.0.0
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-security-requiredrights-default</artifactId>
    <version>17.0.0</version>
</dependency>
org.xwiki.platform:xwiki-platform-rendering-macro-context fixed: 16.4.7
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rendering-macro-context</artifactId>
    <version>16.4.7</version>
</dependency>
org.xwiki.platform:xwiki-platform-rendering-macro-context fixed: 16.10.3
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rendering-macro-context</artifactId>
    <version>16.10.3</version>
</dependency>
org.xwiki.platform:xwiki-platform-rendering-macro-context fixed: 17.0.0
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-rendering-macro-context</artifactId>
    <version>17.0.0</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-49582, 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 rendering xwiki in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.4.7), 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-357: Insufficient UI Warning of Dangerous Operations, where the user interface provides a warning to a user regarding dangerous or sensitive operations, but the warning is not noticeable enough to warrant attention. In Xwiki platform rendering xwiki, 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 When editing content that contains "dangerous" macros like malicious script macros that were authored by a user with fewer rights, XWiki warns about the execution of these macros since XWiki 15.9RC1. These required rights analyzers that trigger these warnings are incomplete, allowing an attacker to hide malicious content. For most macros, the existing analyzers don't consider non-lowercase parameters. Further, most macro parameters that can contain XWiki syntax like titles of information boxes weren't analyzed at all. Similarly, the "source" parameters of the content and context macro weren't anylzed even though they could contain arbitrary XWiki syntax. In the worst case, this could allow a malicious to add malicious script macros including Groovy or Python macros to a page that are then executed after another user with programming righs edits the page, thus allowing remote code execution. ### Patches The required rights analyzers have been made more robust and extended to cover those cases in XWiki 16.4.7, 16.10.3 and 17.0.0. ### Workarounds We're not aware of any workarounds except for being careful when editing content authored by untrusted users. ### References * https://jira.xwiki.org/browse/XWIKI-22763 * https://jira.xwiki.org/browse/XWIKI-22759 * https://jira.xwiki.org/browse/XWIKI-22758 * https://jira.xwiki.org/browse/XWIKI-22799 * https://github.com/xwiki/xwiki-platform/commit/abdcefc0db27035b67329add836fd683e0cf92b8 * https://github.com/xwiki/xwiki-platform/commit/cc74dc802efe0e2d3fa2ba3355dbadc51c5fd8c7 * https://github.com/xwiki/xwiki-platform/commit/0a705e8e253cb871b804e25c53b2bde879c886bd * https://github.com/xwiki/xwiki-platform/commit/3d451e957fe2b14459e9ac64172b4a0e4c46971c

CVE-2025-49582 Affected Xwiki platform rendering xwiki Versions

12 component(s)
Fixed Versions:
16.4.716.10.317.0.0
Product / Package Ecosystem Affected Versions Fixed Version
org.xwiki.platform:xwiki-platform-rendering-xwiki
Maven
≥ 15.9-rc-1
< 16.4.7
16.4.7
org.xwiki.platform:xwiki-platform-rendering-xwiki
Maven
≥ 16.5.0-rc-1
< 16.10.3
16.10.3
org.xwiki.platform:xwiki-platform-rendering-xwiki
Maven
≥ 17.0.0-rc-1
< 17.0.0
17.0.0
org.xwiki.platform:xwiki-platform-rendering-macro-cache
Maven
≥ 15.9-rc-1
< 16.4.7
16.4.7
org.xwiki.platform:xwiki-platform-rendering-macro-cache
Maven
≥ 16.5.0-rc-1
< 16.10.3
16.10.3
org.xwiki.platform:xwiki-platform-rendering-macro-cache
Maven
≥ 17.0.0-rc-1
< 17.0.0
17.0.0
org.xwiki.platform:xwiki-platform-security-requiredrights-default
Maven
≥ 15.9-rc-1
< 16.4.7
16.4.7
org.xwiki.platform:xwiki-platform-security-requiredrights-default
Maven
≥ 16.5.0-rc-1
< 16.10.3
16.10.3
org.xwiki.platform:xwiki-platform-security-requiredrights-default
Maven
≥ 17.0.0-rc-1
< 17.0.0
17.0.0
org.xwiki.platform:xwiki-platform-rendering-macro-context
Maven
≥ 15.9-rc-1
< 16.4.7
16.4.7
org.xwiki.platform:xwiki-platform-rendering-macro-context
Maven
≥ 16.5.0-rc-1
< 16.10.3
16.10.3
org.xwiki.platform:xwiki-platform-rendering-macro-context
Maven
≥ 17.0.0-rc-1
< 17.0.0
17.0.0

References

Frequently Asked Questions

What is CVE-2025-49582?
CVE-2025-49582 is a security vulnerability in Xwiki platform rendering xwiki involving XWiki's required right warnings for macros are incomplete under CWE-357: Insufficient UI Warning of Dangerous Operations.
Which Xwiki platform rendering xwiki versions are affected?
Affected versions include releases prior to 16.4.7, 16.10.3, 17.0.0 across affected packages: org.xwiki.platform:xwiki-platform-rendering-xwiki, org.xwiki.platform:xwiki-platform-rendering-macro-cache, org.xwiki.platform:xwiki-platform-security-requiredrights-default, org.xwiki.platform:xwiki-platform-rendering-macro-context.
What version fixes CVE-2025-49582?
Upgrading to 16.4.7, 16.10.3, 17.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xwiki-platform-rendering-xwiki affected?
Yes, org.xwiki.platform:xwiki-platform-rendering-xwiki is affected in releases prior to 16.4.7, 16.10.3, 17.0.0. Upgrade your dependency to 16.4.7, 16.10.3, 17.0.0 or later.
Is xwiki-platform-rendering-macro-cache affected?
Yes, org.xwiki.platform:xwiki-platform-rendering-macro-cache is affected in releases prior to 16.4.7, 16.10.3, 17.0.0. Upgrade your dependency to 16.4.7, 16.10.3, 17.0.0 or later.
What CWE is associated with CVE-2025-49582?
CVE-2025-49582 is classified under CWE-357: Insufficient UI Warning of Dangerous Operations (The user interface provides a warning to a user regarding dangerous or sensitive operations, but the warning is not noticeable enough to warrant attention.).
How can I check Maven dependencies for CVE-2025-49582?
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-c32m-27pj-4xcj",
  "modified" : "2025-11-04T09:58:16Z",
  "published" : "2025-06-13T20:38:58Z",
  "aliases" : [ "CVE-2025-49582" ],
  "summary" : "XWiki's required right warnings for macros are incomplete",
  "details" : "### Impact\nWhen editing content that contains \"dangerous\" macros like malicious script macros that were authored by a user with fewer rights, XWiki warns about the execution of these macros since XWiki 15.9RC1. These required rights analyzers that trigger these warnings are incomplete, allowing an attacker to hide malicious content. For most macros, the existing analyzers don't consider non-lowercase parameters. Further, most macro parameters that can contain XWiki syntax like titles of information boxes weren't analyzed at all. Similarly, the \"source\" parameters of the content and context macro weren't anylzed even though they could contain arbitrary XWiki syntax. In the worst case, this could allow a malicious to add malicious script macros including Groovy or Python macros to a page that are then executed after another user with programming righs edits the page, thus allowing remote code execution.\n\n### Patches\nThe required rights analyzers have been made more robust and extended to cover those cases in XWiki 16.4.7, 16.10.3 and 17.0.0.\n\n### Workarounds\nWe're not aware of any workarounds except for being careful when editing content authored by untrusted users.\n\n### References\n* https://jira.xwiki.org/browse/XWIKI-22763\n* https://jira.xwiki.org/browse/XWIKI-22759\n* https://jira.xwiki.org/browse/XWIKI-22758\n* https://jira.xwiki.org/browse/XWIKI-22799\n* https://github.com/xwiki/xwiki-platform/commit/abdcefc0db27035b67329add836fd683e0cf92b8\n* https://github.com/xwiki/xwiki-platform/commit/cc74dc802efe0e2d3fa2ba3355dbadc51c5fd8c7\n* https://github.com/xwiki/xwiki-platform/commit/0a705e8e253cb871b804e25c53b2bde879c886bd\n* https://github.com/xwiki/xwiki-platform/commit/3d451e957fe2b14459e9ac64172b4a0e4c46971c",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-rendering-xwiki"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.9-rc-1"
      }, {
        "fixed" : "16.4.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-rendering-xwiki"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.5.0-rc-1"
      }, {
        "fixed" : "16.10.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-rendering-xwiki"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "17.0.0-rc-1"
      }, {
        "fixed" : "17.0.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-rendering-macro-cache"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.9-rc-1"
      }, {
        "fixed" : "16.4.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-rendering-macro-cache"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.5.0-rc-1"
      }, {
        "fixed" : "16.10.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-rendering-macro-cache"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "17.0.0-rc-1"
      }, {
        "fixed" : "17.0.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-security-requiredrights-default"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.9-rc-1"
      }, {
        "fixed" : "16.4.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-security-requiredrights-default"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.5.0-rc-1"
      }, {
        "fixed" : "16.10.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-security-requiredrights-default"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "17.0.0-rc-1"
      }, {
        "fixed" : "17.0.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-rendering-macro-context"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.9-rc-1"
      }, {
        "fixed" : "16.4.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-rendering-macro-context"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.5.0-rc-1"
      }, {
        "fixed" : "16.10.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-rendering-macro-context"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "17.0.0-rc-1"
      }, {
        "fixed" : "17.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-c32m-27pj-4xcj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49582"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/commit/0a705e8e253cb871b804e25c53b2bde879c886bd"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/commit/3d451e957fe2b14459e9ac64172b4a0e4c46971c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/commit/abdcefc0db27035b67329add836fd683e0cf92b8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/commit/cc74dc802efe0e2d3fa2ba3355dbadc51c5fd8c7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xwiki/xwiki-platform"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/XWIKI-22758"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/XWIKI-22759"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/XWIKI-22763"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/XWIKI-22799"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-357" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-13T20:38:58Z",
    "nvd_published_at" : "2025-06-13T17:15:23Z"
  }
}