GHSA-ff6v-w58f-v97w

Suggest an improvement
Source
https://github.com/advisories/GHSA-ff6v-w58f-v97w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-ff6v-w58f-v97w/GHSA-ff6v-w58f-v97w.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-ff6v-w58f-v97w
Aliases
Published
2025-06-13T20:41:12Z
Modified
2025-06-13T21:12:17.794341Z
Severity
  • 5.1 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N CVSS Calculator
Summary
XWiki provides no warning when granting XWiki.Notifications.Code.NotificationEmailRendererClass admin right
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-270",
        "CWE-357"
    ],
    "severity": "MODERATE",
    "nvd_published_at": "2025-06-13T17:15:23Z",
    "github_reviewed_at": "2025-06-13T20:41:12Z",
    "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
0Unknown introduced version / All previous versions are affected
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