diff --git a/.jules/sentinel.md b/.jules/sentinel.md new file mode 100644 index 0000000..436eaf8 --- /dev/null +++ b/.jules/sentinel.md @@ -0,0 +1,4 @@ +## 2024-05-30 - Fix XSS Vulnerability in Email Preview +**Vulnerability:** The email preview used `dangerouslySetInnerHTML` to render untrusted HTML, creating an XSS risk. +**Learning:** Even with DOMPurify, it is safer to use a sandboxed iframe to render untrusted HTML. Since iframes create an isolated browsing context, applying CSS classes (like Tailwind) directly to the `