CVE-2025-49585 XWiki does not require right warnings for XClass definitions

High 8.6 Published Updated

Attackers can inject malicious code into XClass definitions that executes with elevated privileges when edited by authorized users.

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-49585?

CVE-2025-49585 is a high-severity code injection 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. In versions before 15.10.16, 16.0.0-rc-1 through 16.4.6, and 16.5.0-rc-1 through 16.10.1, when an attacker without script or programming right creates an XClass definition in XWiki (requires edit right), and that same document is later edited by a user with script, admin, or programming right, malicious code could be executed with the rights of the editing user without prior warning. In particular, this concerns custom display code, the script of computed properties and queries in database list properties. Note that warnings before editing documents with dangerous properties have only been introduced in XWiki 15.9, before that version, this was a known issue and the advice was simply to be careful. This has been patched in XWiki 16.10.2, 16.4.7 and 15.10.16 by adding an analysis for the respective XClass properties.

Weakness: CWE-357

Which versions are affected by CVE-2025-49585?

6 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-security-requiredrights-default. It affects 1 product.

PackageAffectedFixed in
org.xwiki.platform:xwiki-platform-security-requiredrights-default MavenAll versions15.10.16
org.xwiki.platform:xwiki-platform-security-requiredrights-default MavenAll versions15.10.16
org.xwiki.platform:xwiki-platform-security-requiredrights-default MavenFrom 16.0.0-rc-116.4.7
org.xwiki.platform:xwiki-platform-security-requiredrights-default MavenFrom 16.0.0-rc-116.4.7
org.xwiki.platform:xwiki-platform-security-requiredrights-default MavenFrom 16.5.0-rc-116.10.2
org.xwiki.platform:xwiki-platform-security-requiredrights-default MavenFrom 16.5.0-rc-116.10.2

Products include Xwiki Xwiki.

How do I fix CVE-2025-49585?

Upgrade org.xwiki.platform:xwiki-platform-security-requiredrights-default to a fixed version for your release line: 15.10.16, 16.4.7 or 16.10.2.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-49585 being exploited?

There is no known exploitation of CVE-2025-49585 in the wild and no public exploit code.

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-59w6-r9hm-439h.

Is CVE-2025-49585 in your software?

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

Check your SBOMs for free