GHSA-x7wv-5qg4-vmr6

Suggest an improvement
Source
https://github.com/advisories/GHSA-x7wv-5qg4-vmr6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-x7wv-5qg4-vmr6/GHSA-x7wv-5qg4-vmr6.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-x7wv-5qg4-vmr6
Aliases
Published
2025-04-29T14:03:13Z
Modified
2025-04-30T17:29:29Z
Severity
  • 9.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
org.xwiki.platform:xwiki-platform-component-wiki provides no warning when granting XWiki.ComponentClass programming right
Details

Impact

When a user with programming right edits a document in XWiki that was last edited by a user without programming right and contains an XWiki.ComponentClass, there is no warning that this will grant programming right to this object. An attacker who created such a malicious object could use this to gain programming right on the wiki. For this, the attacker needs to have edit right on at least one page to place this object and then get an admin user to edit that document.

To reproduce the problem, as a user without programming right, add an object of type XWiki.ComponentClass to any page and then edit the page as a user with programming right. There should be warning displayed, if not, the XWiki installation is vulnerable.

While such a warning didn't exist in any version of XWiki, only in XWiki 15.9 RC1 these kinds of warnings have been introduced which is why this is considered the first version that has this vulnerability. Before that, the advice was to be careful when editing pages edited by untrusted users.

Patches

This problem has been patched in XWiki 15.10.2, 16.4.3, and 16.8.0 RC1.

Workarounds

We're not aware of any workarounds apart from not editing pages that might have been edited by untrusted users as a user with programming rights, e.g., by using separate user accounts for admin and non-admin tasks.

Database specific
{
    "cwe_ids":  [
        "CWE-862"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-04-29T14:03:13Z",
    "nvd_published_at":  "2025-04-30T15:16:01Z",
    "severity":  "CRITICAL"
}
References

Affected packages

Maven
org.xwiki.platform:xwiki-platform-component-wiki

Package

Name
org.xwiki.platform:xwiki-platform-component-wiki
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-component-wiki

Affected ranges

Type
ECOSYSTEM
Events
Introduced
15.9-rc-1
Fixed
15.10.12

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-x7wv-5qg4-vmr6/GHSA-x7wv-5qg4-vmr6.json"
org.xwiki.platform:xwiki-platform-component-wiki

Package

Name
org.xwiki.platform:xwiki-platform-component-wiki
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-component-wiki

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.0.0-rc-1
Fixed
16.4.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-x7wv-5qg4-vmr6/GHSA-x7wv-5qg4-vmr6.json"
org.xwiki.platform:xwiki-platform-component-wiki

Package

Name
org.xwiki.platform:xwiki-platform-component-wiki
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-component-wiki

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.5.0-rc-1
Fixed
16.8.0-rc-1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-x7wv-5qg4-vmr6/GHSA-x7wv-5qg4-vmr6.json"