CVE-2025-49582 — Vulnerability in xwiki-platform-re…acro-cache
XWiki's required right warnings for macros are incomplete
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (3.42%). Schedule for your next planned update.
Does your project use an affected org.xwiki.platform:xwiki-platform-rendering-macro-cache version?
Paste your pom.xml to check it for CVE-2025-49582 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 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
Advisory Timeline
- First published June 13, 2025 (532 days ago).
- Last revised November 4, 2025 — 144 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 17.0.0 for org.xwiki.platform:xwiki-platform-rendering-macro-cache -->
<!-- Update pom.xml dependency version to 16.10.3 for org.xwiki.platform:xwiki-platform-rendering-xwiki -->
<!-- Update pom.xml dependency version to 16.4.7 for org.xwiki.platform:xwiki-platform-rendering-xwiki -->
<!-- Update pom.xml dependency version to 17.0.0 for org.xwiki.platform:xwiki-platform-rendering-macro-context -->
<!-- Update pom.xml dependency version to 16.10.3 for org.xwiki.platform:xwiki-platform-security-requiredrights-default -->
<!-- Update pom.xml dependency version to 16.4.7 for org.xwiki.platform:xwiki-platform-rendering-macro-cache -->
<!-- Update pom.xml dependency version to 17.0.0 for org.xwiki.platform:xwiki-platform-rendering-xwiki -->
<!-- Update pom.xml dependency version to 16.4.7 for org.xwiki.platform:xwiki-platform-rendering-macro-context -->
<!-- Update pom.xml dependency version to 16.10.3 for org.xwiki.platform:xwiki-platform-rendering-macro-context -->
<!-- Update pom.xml dependency version to 16.4.7 for org.xwiki.platform:xwiki-platform-security-requiredrights-default -->
<!-- Update pom.xml dependency version to 17.0.0 for org.xwiki.platform:xwiki-platform-security-requiredrights-default -->
<!-- Update pom.xml dependency version to 16.10.3 for org.xwiki.platform:xwiki-platform-rendering-macro-cache -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (12)
Affects 1 ecosystem: Maven (4).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-357
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.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:N/SI:N/SA:N
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-c32m-27pj-4xcjWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-49582ADVISORY
- https://github.com/xwiki/xwiki-platform/commit/0a705e8e253cb871b804e25c53b2bde879c886bdWEB
- https://github.com/xwiki/xwiki-platform/commit/3d451e957fe2b14459e9ac64172b4a0e4c46971cWEB
- https://github.com/xwiki/xwiki-platform/commit/abdcefc0db27035b67329add836fd683e0cf92b8WEB
- https://github.com/xwiki/xwiki-platform/commit/cc74dc802efe0e2d3fa2ba3355dbadc51c5fd8c7WEB
- https://github.com/xwiki/xwiki-platformPACKAGE
- https://jira.xwiki.org/browse/XWIKI-22758WEB
- https://jira.xwiki.org/browse/XWIKI-22759WEB
- https://jira.xwiki.org/browse/XWIKI-22763WEB
- https://jira.xwiki.org/browse/XWIKI-22799WEB
Frequently Asked Questions
- What is CVE-2025-49582?
- XWiki's required right warnings for macros are incomplete. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.0/10).
- How do I check if my project is affected by CVE-2025-49582?
- CVE-2025-49582 affects org.xwiki.platform:xwiki-platform-rendering-macro-cache, org.xwiki.platform:xwiki-platform-rendering-xwiki and org.xwiki.platform:xwiki-platform-rendering-macro-context (and 1 more). It has a 3.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-49582 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 89.7% 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-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-2025-32974CRITICAL
org.xwiki.platform:xwiki-platform-security-requiredrights-default required rights analysis doesn't consider TextAreas with default content type
- CVE-2023-29205CRITICAL
org.xwiki.platform:xwiki-platform-rendering-xwiki vulnerable to stored cross-site scripting via HTML and raw macro
- CVE-2025-49585HIGH
XWiki does not require right warnings for XClass definitions
- CVE-2023-29207HIGH
Improper Neutralization of Script-Related HTML Tags (XSS) in the LiveTable Macro
- CVE-2025-66472MEDIUM
XWiki vulnerable to a reflected XSS via xredirect parameter in DeleteApplication