XWiki provides no warning when granting XWiki.Notifications.Code.NotificationEmailRendererClass admin right
Moderate severity
GitHub Reviewed
Published
Jun 13, 2025
in
xwiki/xwiki-platform
•
Updated Jun 13, 2025
Package
Affected versions
< 15.10.16
>= 16.0.0-rc-1, < 16.4.7
>= 16.5.0-rc-1, < 16.10.2
Patched versions
15.10.16
16.4.7
16.10.2
Description
Published by the National Vulnerability Database
Jun 13, 2025
Published to the GitHub Advisory Database
Jun 13, 2025
Reviewed
Jun 13, 2025
Last updated
Jun 13, 2025
Impact
When a user without script right creates a document with an
XWiki.Notifications.Code.NotificationEmailRendererClass
object, and later an admin edits and saves that document, the email templates in this object will be used for notifications. No malicious code can be executed, though, as while these templates allow Velocity code, the existing generic analyzer already warns admins before editing Velocity code. The main impact would thus be to send spam, e.g., with phishing links to other users or to hide notifications about other attacks. 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.
References