CVE-2025-49587 XWiki does not require right warnings for notification displayer objects
Attackers can inject malicious HTML via notification objects, leading to XSS when admins edit documents, requiring patched XWiki versions.
- 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-49587?
CVE-2025-49587 is a medium-severity cross-site scripting vulnerability in Xwiki Xwiki, published on 13 Jun 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 an open-source wiki software platform. 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. 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.
Weakness: CWE-357
Which versions are affected by CVE-2025-49587?
6 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-notifications-notifiers-default. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.xwiki.platform:xwiki-platform-notifications-notifiers-default Maven | From 15.9-rc-1 | 15.10.16 |
org.xwiki.platform:xwiki-platform-notifications-notifiers-default Maven | From 15.9-rc-1 | 15.10.16 |
org.xwiki.platform:xwiki-platform-notifications-notifiers-default Maven | From 16.0.0-rc-1 | 16.4.7 |
org.xwiki.platform:xwiki-platform-notifications-notifiers-default Maven | From 16.0.0-rc-1 | 16.4.7 |
org.xwiki.platform:xwiki-platform-notifications-notifiers-default Maven | From 16.5.0-rc-1 | 16.10.2 |
org.xwiki.platform:xwiki-platform-notifications-notifiers-default Maven | From 16.5.0-rc-1 | 16.10.2 |
Products include Xwiki Xwiki.
How do I fix CVE-2025-49587?
Upgrade org.xwiki.platform:xwiki-platform-notifications-notifiers-default to a fixed version for your release line: 15.10.16, 16.4.7 or 16.10.2.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-49587 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-49587 exists.
Other vulnerabilities in Xwiki Xwiki
- CVE-2025-24893 XWiki Platform Eval Injection
- CVE-2025-53836 XWiki Rendering is vulnerable to RCE attacks when processing nested macros
- CVE-2024-55662 XWiki allows remote code execution through the extension sheet
- CVE-2024-55877 XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList
- CVE-2024-37901 XWiki Platform vulnerable to remote code execution from account via SearchSuggestConfigSheet
Sources
Also known as GHSA-j7p2-87q3-44w7.