You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Email and notification templates accept rich text with HTML. Without sanitization, these fields are XSS vectors for admin users.
Current Limitation/Problem
HTML in email templates is rendered as-is. A malicious admin can inject <script> tags that execute in other admin browsers.
Expected Outcome
Server-side DOMPurify sanitization for all rich text inputs, tag/attribute allowlist, CSP headers on admin dashboard, and back-scan job for existing templates.
Acceptance Criteria
Server-side sanitization: DOMPurify (via jsdom) on all rich text input fields
Tag allowlist: p, span, a, img, table, tr, td, th, h1-h6, ul, ol, li, strong, em, br, hr
Context
Email and notification templates accept rich text with HTML. Without sanitization, these fields are XSS vectors for admin users.
Current Limitation/Problem
HTML in email templates is rendered as-is. A malicious admin can inject <script> tags that execute in other admin browsers.
Expected Outcome
Server-side DOMPurify sanitization for all rich text inputs, tag/attribute allowlist, CSP headers on admin dashboard, and back-scan job for existing templates.
Acceptance Criteria
Technical Scope