CVE-2025-49580 XWiki allows privilege escalation through link refactoring
Attackers can escalate privileges and execute scripts by renaming or moving linked pages, allowing unauthorized code execution in XWiki.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-49580?
CVE-2025-49580 is a high-severity vulnerability in Xwiki Xwiki, published on 13 Jun 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
XWiki is a generic wiki platform. From 8.2 and 7.4.5 until 17.1.0-rc-1, 16.10.4, and 16.4.7, 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 is fixed in 17.1.0-rc-1, 16.10.4, and 16.4.7.
Weakness: CWE-266
Which versions are affected by CVE-2025-49580?
8 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-refactoring-default. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.xwiki.platform:xwiki-platform-refactoring-default Maven | From 16.5.0-rc-1 | 16.10.4 |
org.xwiki.platform:xwiki-platform-refactoring-default Maven | From 16.5.0-rc-1 | 16.10.4 |
org.xwiki.platform:xwiki-platform-refactoring-default Maven | From 17.0.0-rc-1 | 17.1.0-rc-1 |
org.xwiki.platform:xwiki-platform-refactoring-default Maven | From 17.0.0-rc-1 | 17.1.0-rc-1 |
org.xwiki.platform:xwiki-platform-refactoring-default Maven | From 7.4.5 | 16.4.7 |
org.xwiki.platform:xwiki-platform-refactoring-default Maven | From 7.4.5 | 16.4.7 |
2 more packages
org.xwiki.platform:xwiki-platform-refactoring-default Maven | From 8.2 | 16.4.7 |
org.xwiki.platform:xwiki-platform-refactoring-default Maven | From 8.2 | 16.4.7 |
Products include Xwiki Xwiki.
How do I fix CVE-2025-49580?
Upgrade org.xwiki.platform:xwiki-platform-refactoring-default to a fixed version for your release line: 16.10.4, 17.1.0-rc-1 or 16.4.7.
Is CVE-2025-49580 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-49580 exists.
Other vulnerabilities in Xwiki Xwiki
- CVE-2025-24893 XWiki Platform Eval Injection
- CVE-2025-53836 XWiki Rendering is vulnerable to RCE attacks when processing nested macros
- CVE-2024-55662 XWiki allows remote code execution through the extension sheet
- CVE-2024-55877 XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList
- CVE-2024-37901 XWiki Platform vulnerable to remote code execution from account via SearchSuggestConfigSheet
Sources
Also known as GHSA-jm43-hrq7-r7w6.