GHSA-j7p2-87q3-44w7

Suggest an improvement
Source
https://github.com/advisories/GHSA-j7p2-87q3-44w7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-j7p2-87q3-44w7/GHSA-j7p2-87q3-44w7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j7p2-87q3-44w7
Aliases
Published
2025-06-13T20:45:44Z
Modified
2025-06-13T21:12:18.096804Z
Severity
  • 6.4 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H CVSS Calculator
Summary
XWiki does not require right warnings for notification displayer objects
Details

Impact

When a user without script right creates a document with an XWiki.Notifications.Code.NotificationDisplayerClass object, and later an admin edits and saves that document, the possibly malicious content of that object is output as raw HTML, allowing XSS attacks. While the notification displayer executes Velocity, the existing generic analyzer already warns admins before editing Velocity code. 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 vulnerability has been patched in XWiki 15.10.16, 16.4.7, and 16.10.2 by adding a required rights analyzer that warns the admin before editing about the possibly malicious code.

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:45:44Z",
    "cwe_ids": [
        "CWE-357"
    ],
    "nvd_published_at": "2025-06-13T18:15:22Z",
    "severity": "MODERATE",
    "github_reviewed": true
}
References

Affected packages

Maven / org.xwiki.platform:xwiki-platform-notifications-notifiers-default

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
15.9-rc-1
Fixed
15.10.16

Maven / org.xwiki.platform:xwiki-platform-notifications-notifiers-default

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.0.0-rc-1
Fixed
16.4.7

Maven / org.xwiki.platform:xwiki-platform-notifications-notifiers-default

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
16.5.0-rc-1
Fixed
16.10.2