mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 20:45:07 -05:00
With an admin-defined activity e-mail body template (#2022), the HTML body was the substituted template, and the values substituted into it - card, board and list titles, the username, a comment - are written by members, so markup in a card title reached other members' HTML mail. The template stays trusted and may carry HTML; the HTML body now substitutes escaped values, and the text body is unchanged. Rule e-mails and invitations are text only. The test drives the substitution with hostile values; an assertion that had pinned the vulnerable form now pins the fixed one. Thanks to xet7 !