Submit #1008105: diem-project diem 116974edfb9a5b8bd69cb13586dc62bcdbb485ad Cross Site Scriptinginfo

Titlediem-project diem 116974edfb9a5b8bd69cb13586dc62bcdbb485ad Cross Site Scripting
DescriptionThe Link Widget accepts its `text` field as an unrestricted `sfValidatorString` in `dmFrontPlugin/lib/dmWidget/link/dmWidgetContentLinkForm.php`. Its view in `dmWidgetContentLinkView.php` applies `nl2br()` and passes the result to `dmBaseLinkTag::text()`. `dmCorePlugin/lib/view/html/link/dmBaseLinkTag.php` inserts the value directly between `<a>` tags without HTML encoding. A user with the `widget_edit_fast` or `widget_edit` credential can persist markup such as `<img src=x onerror=alert(document.domain)>`, which executes for every visitor who loads a page containing that widget.
Source⚠️ https://github.com/diem-project/diem/issues/459
User
 cnluminous (UID 98136)
Submission09/30/2026 18:07 (26 days ago)
Moderation10/18/2026 11:52 (18 days later)
StatusAccepted
VulDB entry421690 [diem-project diem up to 116974edfb9a5b8bd69cb13586dc62bcdbb485ad dmWidget dmBaseLinkTag.php dmBaseLinkTag::text cross site scripting]
Points20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!