CVE-2025-49580 XWiki allows privilege escalation through link refactoring

High 8.5 Published Updated

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.

PackageAffectedFixed in
org.xwiki.platform:xwiki-platform-refactoring-default MavenFrom 16.5.0-rc-116.10.4
org.xwiki.platform:xwiki-platform-refactoring-default MavenFrom 16.5.0-rc-116.10.4
org.xwiki.platform:xwiki-platform-refactoring-default MavenFrom 17.0.0-rc-117.1.0-rc-1
org.xwiki.platform:xwiki-platform-refactoring-default MavenFrom 17.0.0-rc-117.1.0-rc-1
org.xwiki.platform:xwiki-platform-refactoring-default MavenFrom 7.4.516.4.7
org.xwiki.platform:xwiki-platform-refactoring-default MavenFrom 7.4.516.4.7
2 more packages
org.xwiki.platform:xwiki-platform-refactoring-default MavenFrom 8.216.4.7
org.xwiki.platform:xwiki-platform-refactoring-default MavenFrom 8.216.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.

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-jm43-hrq7-r7w6.

Is CVE-2025-49580 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free