CVE-2025-32974 org.xwiki.platform:xwiki-platform-security-requiredrights-default required rights analysis doesn't consider TextAreas with default content type

Critical 9.1 Published Updated

Attackers can inject malicious scripts into TextAreas that execute with elevated privileges when edited by authorized users, compromising the wiki installation.

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

CVE-2025-32974 is a critical vulnerability in Xwiki Xwiki, published on 30 Apr 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 starting from 15.9-rc-1 to before 15.10.8 and from 16.0.0-rc-1 to before 16.2.0, the required rights analysis doesn't consider TextAreas with default content type. When editing a page, XWiki warns since version 15.9 when there is content on the page like a script macro that would gain more rights due to the editing. This analysis doesn't consider certain kinds of properties, allowing a user to put malicious scripts in there that will be executed after a user with script, admin, or programming rights edited the page. Such a malicious script could impact the confidentiality, integrity and availability of the whole XWiki installation. This issue has been patched in versions 15.10.8 and 16.2.0.

Weakness: CWE-269, CWE-116

Which versions are affected by CVE-2025-32974?

4 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 MavenFrom 15.9-rc-115.10.8
org.xwiki.platform:xwiki-platform-security-requiredrights-default MavenFrom 15.9-rc-115.10.8
org.xwiki.platform:xwiki-platform-security-requiredrights-default MavenFrom 16.0.0-rc-116.2.0
org.xwiki.platform:xwiki-platform-security-requiredrights-default MavenFrom 16.0.0-rc-116.2.0

Products include Xwiki Xwiki.

How do I fix CVE-2025-32974?

Upgrade org.xwiki.platform:xwiki-platform-security-requiredrights-default to a fixed version for your release line: 15.10.8 or 16.2.0.

Is CVE-2025-32974 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-32974 exists.

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-mvgm-3rw2-7j4r.

Is CVE-2025-32974 in your software?

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

Check your SBOMs for free