GHSA-j7p2-87q3-44w7
XWiki does not require right warnings for notification displayer objects
At a glance
- Published
- Updated
- CVE
- CVE-2025-49587
- 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
Description
### 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.
Affected packages
| Package | Versions |
|---|---|
| Maven · org.xwiki.platform:xwiki-platform-notifications-notifiers-default | introduced 15.9-rc-1, fixed 15.10.16 |
| Maven · org.xwiki.platform:xwiki-platform-notifications-notifiers-default | introduced 16.0.0-rc-1, fixed 16.4.7 |
| Maven · org.xwiki.platform:xwiki-platform-notifications-notifiers-default | introduced 16.5.0-rc-1, fixed 16.10.2 |
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-j7p2-87q3-44w7 WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-49587 ADVISORY
- https://github.com/xwiki/xwiki-platform/commit/55c5d568c4dc4619f37397d00d14dcdeab9c252d WEB
- https://github.com/xwiki/xwiki-platform PACKAGE
- https://jira.xwiki.org/browse/XWIKI-22470 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |