diff --git a/.jules/sentinel.md b/.jules/sentinel.md index 5e0d967e..24e108fe 100644 --- a/.jules/sentinel.md +++ b/.jules/sentinel.md @@ -14,3 +14,8 @@ **Vulnerability:** Several `escapeHtml` implementations used DOM manipulation (`document.createElement('div').innerHTML`) or incomplete string replacement, failing to escape single and double quotes. **Learning:** Incomplete escaping allows XSS payloads to break out of HTML attributes (e.g., ``). **Prevention:** Always use `String(text)` cast combined with a comprehensive replace chain for `&`, `<`, `>`, `"`, and `'` (e.g., `'`) in custom string escaping functions. + +## 2025-02-14 - Fix Fail Open XSS Vulnerability in Markdown Parsing +**Vulnerability:** Raw HTML strings generated by `marked.parse` for node specifications were directly assigned to `innerHTML` without sanitization. If `marked` or an adversary injects malicious `