GHSA-59w6-r9hm-439h

Suggest an improvement
Source
https://github.com/advisories/GHSA-59w6-r9hm-439h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-59w6-r9hm-439h/GHSA-59w6-r9hm-439h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-59w6-r9hm-439h
Aliases
Published
2025-06-13T20:46:58Z
Modified
2025-06-13T21:12:17.950201Z
Severity
  • 8.6 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:L/SI:L/SA:N CVSS Calculator
Summary
XWiki does not require right warnings for XClass definitions
Details

Impact

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.

Patches

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.

Workarounds

We're not aware of any real workarounds apart from just being careful with editing documents previously edited by untrusted users as a user with script, admin or programming right.

Database specific
{
    "github_reviewed_at": "2025-06-13T20:46:58Z",
    "cwe_ids": [
        "CWE-357"
    ],
    "nvd_published_at": "2025-06-13T18:15:22Z",
    "severity": "HIGH",
    "github_reviewed": true
}
References

Affected packages

Maven / org.xwiki.platform:xwiki-platform-security-requiredrights-default

Package

Name
org.xwiki.platform:xwiki-platform-security-requiredrights-default
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-security-requiredrights-default

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
15.10.16

Maven / org.xwiki.platform:xwiki-platform-security-requiredrights-default

Package

Name
org.xwiki.platform:xwiki-platform-security-requiredrights-default
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-security-requiredrights-default

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.0.0-rc-1
Fixed
16.4.7

Maven / org.xwiki.platform:xwiki-platform-security-requiredrights-default

Package

Name
org.xwiki.platform:xwiki-platform-security-requiredrights-default
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-security-requiredrights-default

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.5.0-rc-1
Fixed
16.10.2